How to divide in Excel and find the integer quotient and remainder
In Excel, use / for the division result, QUOTIENT for the integer quotient, and MOD for the remainder. Dividing 100 by 8 gives 12.5, 12, and 4, respectively.
Calculate all three results from the same cells
Enter 100 in A2 and 8 in B2. Put the formulas below in E2, E3, and E4, one per cell in that order. In both functions, the first argument is the number you are dividing and the second is the divisor. If Excel rejects the comma between arguments, use the list separator in your regional settings, such as a semicolon.
=A2/B2
=QUOTIENT(A2,B2)
=MOD(A2,B2)
The cells show 12.5, 12, and 4. For example, if you pack 100 items into boxes of eight, QUOTIENT gives you the 12 full boxes and MOD gives you the four items left over. If the division result displays as 13, increase the number of decimal places shown in the result cell.
Microsoft’s QUOTIENT function reference
Microsoft’s MOD function reference
How negative numbers affect the quotient and remainder
=QUOTIENT(-10,3)
=MOD(-10,3)
=MOD(10,-3)
The three formulas below return -3, 2, and -2 in order. QUOTIENT drops the fractional portion of the division result toward zero. A nonzero result from MOD has the same sign as the divisor.
For -10 divided by 3, multiplying the returned quotient by 3 and adding 2 gives -7. You cannot reconstruct -10 from those two outputs. To compute the remainder, MOD uses the quotient rounded down to the next lower integer, giving -10−3×(-4)=2 here. Check this sign rule when your worksheet contains negative differences or adjustments.
What happens with zero or a blank as the divisor?
If B2 contains zero, all three formulas return #DIV/0!. A blank cell reference can also be treated as zero. Check whether the input is missing, and consider displaying a distinct message for missing and zero divisors when your worksheet needs to distinguish the two cases.
Decimal inputs can give a tiny rounding discrepancy in the remainder because Excel uses floating-point arithmetic. If you are calculating a remainder in increments of 0.05 currency units, for example, convert both values to whole numbers in the same smallest currency unit before calculating. Define a rounding rule first if your inputs have varying precision.




