
Modify the MOD function for divisors larger
than the number
As seen in the previous tip, a problem occurs when the divisor is
larger than the number for which you want to find the remainder.
The result will always be the number itself. To handle this using
the MOD function, follow these steps.
4
Handling divisors that are larger than the number:
1. Select cells A2:A10 and enter 100.
2. Press <Ctrl+Enter>.
3. In cells B2:B10 enter different divisors.
4. Select cells C2:C10 and type this formula: =A2/B2.
5. Press <Ctrl+Enter>.
6. Select cells D2:D10 and type this formula:
=MOD(A2,B2)*(A2>B2).
7. Press <Ctrl+Enter>.
Mathematical Functions 171
6
Figure 6-26