MOD
The MOD
function in Google Sheets returns the result of the modulo operator, which is the remainder after a division operation.
Function Syntax and Parameters
Syntax: MOD(dividend, divisor)
Parameters:
dividend
: The number to be divided.divisor
: The number that divides thedividend
.
Step-by-Step Tutorial
-
Using
MOD
with two numbers:- Example:
=MOD(12, 5)
- Result:
2
- Example:
-
Using
MOD
with cell references:- Example: If cell
A1
has the value25
and cellB1
has the value6
, then=MOD(A1, B1)
will return1
.
- Example: If cell
Use Cases and Scenarios
- Time Calculation: Determine the remaining minutes after a given time has passed.
- Inventory Management: Calculate the quantity remaining after a certain number of items are sold.
- Data Analysis: Determine the position of an element in a repeating pattern.
Related Functions
QUOTIENT
: Returns only the integer part of a division operation.ROUND
: Rounds a number to a specified number of decimal places.