==MOD(number, divisor)
=MOD(7,3) // returns 1
In this example, the MOD function returns 1.
=MOD(7,-3) // returns -2
In this example, the MOD function returns -2 because of how INT rounds down negative numbers.
=MOD(12,3) // returns 0
MOD returns 0 in this example.
=MOD(12,5) // returns 2
MOD returns 2 in this example.
=MOD (100,33) // returns 1
This is another example of how to use MOD. Here, MOD returns 1.
=MOD(6.25,1) // returns 0.25
In this example, MOD returns 0.25, a decimal.
=MOD(-3,2) // returns 1
=MOD(3,-2) // returns -1
=MOD(-3,-2) // returns -1
The MOD function is used to calculate the remainder of a division operation between two numbers. The result of the operation will have the same sign as the divisor.