Returns the remainder when one integer is divided by another. The result takes the sign of the divisor.
Syntax
number: The number whose remainder you want to find. Eg., 25
Remarks
The MOD function can be represented in terms of the INT function, as number - divisor * INT(number/divisor).
Examples
|
Formula
|
Result
|
|
=MOD(25,-2)
|
-1
|
|
=MOD(442,12)
|
10
|
|
=MOD(-23,5)
|
2
|
Possible Errors
|
Errors
|
Meaning
|
|
#N/A!
|
|
|
#NAME!
|
|
|
#VALUE!
|
|
|
#REF!
|
|
|
#DIV/0!
|
|