MOD(dividend, divisor)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
dividend:
The number or cell reference from which you want to find the remainder when divided by the divisor.
divisor:
The number or cell reference by which you want to divide the dividend. This value must not be zero, as division by zero is undefined.
The MOD function in Google Sheets is a mathematical function used to return the remainder of a division operation. It is particularly useful in various scenarios, such as determining if a number is even or odd, cycling through a list, or performing calculations that require periodicity. The MOD function takes two arguments: the dividend and the divisor.
In simpler terms, MOD helps you find out what is left over after dividing one number by another.
Imagine you are analyzing sales data and want to determine which sales representatives have achieved their targets based on a specific quota.
| SalesRep | SalesAmount |
|---|---|
| Alice | 1500 |
| Bob | 2200 |
| Charlie | 800 |
| David | 3000 |
You have a target quota of 1000 sales. You want to find out how many sales representatives exceeded this target and by how much.
To achieve this, you would use the MOD function as follows:
=MOD(B2, 1000)In this formula:
B2 is the cell containing the SalesAmount for each SalesRep.1000 is the target quota.When you apply the MOD formula to the Sales Data Table, the output would look like this:
| SalesRep | SalesAmount | Remainder |
|---|---|---|
| Alice | 1500 | 500 |
| Bob | 2200 | 200 |
| Charlie | 800 | 800 |
| David | 3000 | 0 |
In this case, the MOD function shows how much each sales representative's sales amount exceeds or falls short of the target quota of 1000.
MOD is beneficial because it provides a simple way to analyze numerical data and identify patterns. It can help in various scenarios, such as determining even or odd numbers, cycling through lists, or checking for divisibility. The function is straightforward and easy to use, making it a valuable tool for anyone working with numerical data in Google Sheets.
MOD is an essential function for anyone working with numerical data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a list of sales transactions in Column A and their corresponding amounts in Column B. Use the MOD formula to identify every second transaction's amount, allowing you to analyze patterns or trends in your sales data efficiently.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.