1. Home
  2. Functions
  3. Math
  4. MOD

MOD function

Returns the remainder after dividing a number by a divisor; the result has the sign of the divisor.

Syntax

=MOD(number, divisor)

Arguments

ArgumentRequiredDescription
numberRequiredThe number to divide
divisorRequiredThe number to divide by

How to use MOD

MOD takes 2 required arguments. Type =MOD( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=MOD(3, 2)Result 1
=MOD(-3, 2)Result 1
=MOD(3, -2)Result -1
=MOD(-3, -2)Result -1

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.