Fresh Excel Tips

Quick and Easy Excel Tips and Tutorials

Modify the MOD function for divisors larger than the number

As seen in our previous example, 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.

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.

Modify the MOD function for divisors larger than the number

This tip is compatible with Excel 97, 2000, 2003 and 2007.

Modify the MOD function for divisors larger than the number
  1. How to Use the MOD function to extract the remainder of a division
  2. Use the QUOTIENT function to return the integer portion of a division

Leave a Reply