Syntax
=MOD(number, divisor)Arguments
| Argument | Required | Description |
|---|---|---|
number | Required | The number to divide |
divisor | Required | The 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 =MOD(-3, 2)Result =MOD(3, -2)Result =MOD(-3, -2)Result Related math functions
- MDETERMReturns the determinant of a square matrix.
- MINUSReturns the difference of two numbers, like the - operator.
- MINVERSEReturns the inverse of a square matrix.
- MMULTReturns the matrix product of two arrays.
- MROUNDRounds a number to the nearest multiple of another number.
- MULTINOMIALReturns the factorial of a sum of values divided by the product of their factorials.
- MULTIPLYReturns the product of two numbers, like the * operator.
- MUNITReturns the identity matrix of a given size.
- ODDRounds a number away from zero to the nearest odd integer.