The MOD function in Google Sheets is a powerful tool for performing mathematical operations. Specifically, it calculates the remainder of a division, enabling users to effectively handle various calculations, particularly in scenarios involving periodic events or cycles. Understanding how to use this function can enhance your data manipulation capabilities.
Syntax
MOD(dividend, divisor)
- dividend: The number to be divided.
- divisor: The number by which you want to divide the dividend.
Example #1
MOD(10, 3)
This calculation divides 10 by 3, resulting in a remainder of 1.
Example #2
MOD(14, 5)
This operation divides 14 by 5, yielding a remainder of 4.
Example #3
MOD(25, 7)
This division of 25 by 7 results in a remainder of 4, demonstrating how MOD effectively calculates remainders.
Error handling
- DIV/0!: This error occurs when the divisor is zero, as division by zero is undefined.
- VALUE!: This error appears when non-numeric values are used in the dividend or divisor, indicating that the input types are incorrect.