MOD function can be used when you want to get the remainder when one number is divided by another number. Example 4 – Highlight All the Integer /Decimal Values.Example 3 – Highlight Alternate Rows in Excel.Example 2 – Specify a Number in Every Nth Cell.Example 1 – Add Only the Odd or the Even Numbers.Examples of Using MOD Function in Excel.