FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

MOD in Google Sheets

MOD with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the MOD Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Leftover items

AB
1ItemsBox size
2296

Formula: D2: =MOD(A2,B2)

Result: 5

After four full boxes, five items remain.

Even number test

A
1Value
214

Formula: C2: =MOD(A2,2)

Result: 0

An even integer has no remainder when divided by two.

Wrap a cycle

A
1Position
217

Formula: C2: =MOD(A2-1,7)+1

Result: 3

The expression maps positions repeatedly into the range 1 through 7.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in D2: =MOD(A3,B3)

Example spreadsheet for MOD
ABCD
1NumberStepResult
21234.567502
3175
4-4.712
51449
62.53
75012
Result in D2: 2
Practice this in a lesson: INT, MOD, QUOTIENT

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.