What does the MOD function do?
By definition, it returns the remainder after one number is divided by another.
We can classify whole numbers into certain groups. For example, Odd and Even, or numbers that are divisible by two, by three, four, and so on.
This is what the MOD function does. It checks if a number is divisible by another number and if not, how far away is it from being divisible.
The key here, is that MOD looks backwards – i.e. to the next smaller number that was divisible and then count. MOD works the same with negative numbers.
Feel free to Download the Workbook HERE.

Leila Gharani
Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.







