In Microsoft Excel, the MOD() function returns the remainder (modulus) of dividing one number by another. The MOD() function accepts two arguments:
Argument Definition
--------------------------------------
Number The number being divided
Divisor The number being divided by
If you want to calculate the remainder (modulus) of 22 divided by 5,
you would use the following formula:
=MOD(22,5)
The result is 2 (22 divided by 5 leaves a remainder of 2).
If the divisor argument, multiplied by 134,217,728 (or 2 raised to the 27th
power), is less than or equal to the number argument, the MOD() function
returns a #NUM! error value.