Table of Contents
The MOD function in Google Sheets is a mathematical function that returns the remainder of a division operation. To use this function, simply enter the two numbers you want to divide in the parentheses, separated by a comma. The result will be the remainder of the division. This can be useful for various calculations and data analysis tasks. To access the MOD function, click on the “Formulas” tab in Google Sheets and select “Mathematics” from the drop-down menu. From there, you can choose the MOD function and input your desired parameters. This function can save time and effort in performing manual division calculations and is a useful tool for organizing and analyzing data in a spreadsheet.
Get Remainder in Google Sheets Using MOD Function
You can use the MOD function in Google Sheets to calculate the remainder after a division operation.
This function uses the following basic syntax:
=MOD(dividend, divisor)
where:
- dividend: The number to be divided
- divisor: The number to divide by
The following examples show to use this function in different scenarios in Google Sheets.
Example 1: Using MOD Function with No Remainder
The following screenshot shows how to use the MOD function in a situation where there is no remainder:

From the output we can see that the remainder of 36 divided by 6 is zero.
This is because 6 divides into 36 exactly 6 times and no remainder is left.
Example 2: Using MOD Function with a Remainder
The following screenshot shows how to use the MOD function in a situation where there is a remainder:

From the output we can see that the remainder of 36 divided by 7 is one.
This is because 7 divides into 36 a total of 5 times and a remainder of 1 is left.
Example 3: Using MOD Function when Dividing by Zero

We receive a #DIV/0! error because it’s not possible to divide by zero.
If we’d like to suppress this error, we can instead use the following formula:
=IFERROR(MOD(A2, B2), "")
The following screenshot shows how to use this formula in practice:

Since we attempted to divide by zero, the formula simply returned a blank value as a result.
Note: You can find the complete online documentation for the MOD function .
Additional Resources
The following tutorials explain how to use other common functions in Google Sheets:
Cite this article
stats writer (2024). How do I get the remainder in Google Sheets using the MOD function?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-do-i-get-the-remainder-in-google-sheets-using-the-mod-function/
stats writer. "How do I get the remainder in Google Sheets using the MOD function?." PSYCHOLOGICAL SCALES, 30 Jun. 2024, https://scales.arabpsychology.com/stats/how-do-i-get-the-remainder-in-google-sheets-using-the-mod-function/.
stats writer. "How do I get the remainder in Google Sheets using the MOD function?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-do-i-get-the-remainder-in-google-sheets-using-the-mod-function/.
stats writer (2024) 'How do I get the remainder in Google Sheets using the MOD function?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-do-i-get-the-remainder-in-google-sheets-using-the-mod-function/.
[1] stats writer, "How do I get the remainder in Google Sheets using the MOD function?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How do I get the remainder in Google Sheets using the MOD function?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
