Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Integer Division: How to Divide and Remove Decimals

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To perform integer division in Excel, use the =QUOTIENT(numerator, denominator) function or the =INT(number/number) formula. Integer division is the process of dividing two numbers and discarding the remainder or decimal portion, leaving only the whole number (the quotient). This is essential for tasks like calculating how many full crates are needed for a shipment or determining how many full weeks are in a specific number of days.

What You'll Need

  • A computer with Microsoft Excel installed (any version from 2007 onwards).
  • A dataset containing the numbers you wish to divide.
  • Basic knowledge of how to enter a formula into an Excel cell.

Step-by-Step

Depending on your specific goal—whether you want a simple quotient or need to handle negative numbers specifically—you can use one of the following three methods. Labels and menu options may vary slightly depending on your version of Excel or operating system.

Method 1: Using the QUOTIENT Function

The QUOTIENT function is the most direct way to perform integer division because it is designed specifically to return only the integer portion of a division result.

  1. Click on the cell where you want the result to appear.
  2. Type =QUOTIENT( into the cell.
  3. Select the cell containing your numerator (the number to be divided) or type the number directly. For example, if your number is in cell A2, type A2.
  4. Type a comma to separate the arguments.
  5. Select the cell containing your denominator (the number you are dividing by) or type the number directly. For example, if your divisor is in cell B2, type B2.
  6. Close the parentheses and press Enter. The final formula should look like =QUOTIENT(A2, B2).
  7. To apply this to a whole column, click the small green square (fill handle) at the bottom-right corner of the cell and drag it down through the remaining rows.

Method 2: Using the INT Function

The INT function rounds a number down to the nearest integer. This is useful when you are performing a standard division calculation and want to strip the decimals away.

  1. Click on the target cell.
  2. Type =INT(.
  3. Perform the division inside the parentheses using the forward slash (/) operator. For example, type A2/B2.
  4. Close the parentheses and press Enter. The final formula should look like =INT(A2/B2).
  5. Note that INT behaves differently than QUOTIENT with negative numbers (it rounds away from zero), which is a critical distinction for financial or scientific data.

Method 3: Using the TRUNC Function

The TRUNC (truncate) function simply cuts off the decimal part of a number without rounding. This is the closest mathematical equivalent to how many programming languages handle integer division.

  1. Click on the target cell.
  2. Type =TRUNC(.
  3. Enter your division formula inside the parentheses: A2/B2.
  4. Close the parentheses and press Enter. The final formula should look like =TRUNC(A2/B2).
  5. Unlike INT, TRUNC simply removes the decimals regardless of whether the number is positive or negative, effectively rounding toward zero.

Common Mistakes

One of the most frequent errors is confusing the QUOTIENT function with the MOD function. While QUOTIENT gives you the whole number of times one value fits into another, MOD gives you only the remainder. If you divide 10 by 3, QUOTIENT returns 3, while MOD returns 1. Using the wrong one will lead to entirely incorrect data analysis.

Another common mistake is relying on Cell Formatting to hide decimals. Many users select a cell and click the "Decrease Decimal" button in the Home tab. While this makes the cell look like an integer, Excel still stores the full decimal value in the background. If you use that cell in a subsequent calculation, the hidden decimals will be included, which can lead to rounding errors and totals that don't seem to add up correctly.

Users also frequently forget to handle Division by Zero. If your denominator cell is empty or contains a zero, Excel will return a #DIV/0! error. This can break an entire spreadsheet of formulas if not managed with an error-handling function like IFERROR.

Tips

To make your spreadsheets more professional and robust, wrap your integer division in an IFERROR function. For example: =IFERROR(QUOTIENT(A2, B2), 0). This tells Excel to display a 0 (or any text you choose, like "N/A") instead of an ugly error message if the divisor is zero.

If you need to find both the integer quotient and the remainder at the same time, set up two adjacent columns. Use =QUOTIENT(A2, B2) in the first column and =MOD(A2, B2) in the second. This is a standard practice for converting units, such as converting total minutes into hours and remaining minutes.

For those working with very large datasets, consider using Excel Tables (Ctrl + T). When you enter an integer division formula in a Table, Excel automatically fills the formula down the entire column, ensuring consistency and saving you from manually dragging the fill handle.

Troubleshooting

If your formula is returning a decimal despite using QUOTIENT or INT, check to see if you have nested the formula inside another function that converts it back to a float, or check if you are actually using the standard division operator (/) without a wrapping function. The / operator always returns a decimal if one exists.

If you see a #VALUE! error, it usually means one of the cells you are referencing contains text instead of a number. Ensure that your data is formatted as "Number" or "General" and that there are no hidden spaces or non-numeric characters (like currency symbols typed manually instead of using formatting) in the cells.

If the result of =INT() seems "off" by one when dealing with negative numbers, this is expected behavior. For example, =INT(-3.1) results in -4 because INT rounds down to the next lowest integer. If you want the result to be -3, switch to the =TRUNC() function, which simply removes the decimal without rounding.

Frequently Asked Questions

What is the difference between INT and TRUNC?

INT rounds a number down to the nearest integer. For positive numbers, they behave the same. For negative numbers, INT moves away from zero (e.g., -1.1 becomes -2), while TRUNC simply removes the decimal (e.g., -1.1 becomes -1).

Can I use the ROUND function for integer division?

You can use =ROUND(A2/B2, 0), but this is not true integer division. ROUND will round up if the decimal is .5 or higher, whereas integer division always discards the remainder regardless of the decimal value.

How do I get the remainder after integer division?

Use the =MOD(numerator, denominator) function. This returns the leftover value that did not fit evenly into the integer quotient.

Why does my QUOTIENT function return a #DIV/0! error?

This happens because the second argument (the denominator) is either zero or an empty cell. Excel cannot divide by zero mathematically, so it triggers this error.

Does integer division work with dates and times?

Yes, because Excel stores dates and times as numbers. Dividing a total number of days by 7 using QUOTIENT will tell you how many full weeks have passed.

Is there a keyboard shortcut for integer division?

No, there is no single keyboard shortcut for the function, but you can quickly start any formula by typing the equals sign (=) and then the function name.