SheetsLessons
Math & Counting function

MOD function in Google Sheets

MOD returns the remainder after dividing one number by another. Common uses are leftover minutes after whole hours, every-nth-row patterns, and odd/even checks.

Syntax

=MOD(dividend, divisor)
dividend
The number being divided.
divisor
The number to divide by.

Practice MOD

Task 1 of 1

Now find the minutes left over after the whole hours. Answer in C2.

C2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

MOD examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

AB
1ValueOther
2-7.453
312.54
4812
52.50
61234.5675
Assorted numbers
FormulaResultWhat it shows
=MOD(A4, B3)1Remainder of 81 ÷ 4.
=MOD(A4, B4)10 means it divides evenly. Here 81 is odd, so the remainder is 1.
=MOD(A4, B5)#DIV/0!Dividing by zero gives #DIV/0!.

Tips and common mistakes

  • In Google Sheets the result takes the sign of the divisor, so =MOD(-7, 3) is 2, not -1.
  • =MOD(ROW(), 2) = 0 is a popular custom-formatting rule for shading every other row.

Related functions