Matheasy
MOD()
Returns the remainder after dividing one number by another. MOD(10, 3) = 1.
Syntax
fx
=MOD(dividend, divisor)
Arguments
Example
fx
=MOD(10, 3)
Paste this into Google Sheets to run it. The live playground on this site covers 24 of the 61 functions, and MOD isn't one of them yet.
Common pitfalls
- Sign of the result follows the divisor in Sheets, not the dividend.
MOD(-5, 3)returns1, not-2. - Dividing by zero returns
#DIV/0!. Wrap inIFERRORif the divisor may be zero.
Related formulas