=MOD(number, divisor)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
Need more than a single MOD formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.
number:
The number for which you want to find the remainder after division by the divisor. This can be a cell reference, a number, or a formula that returns a number.
divisor:
The number by which you want to divide the number. This must be a non-zero value, as dividing by zero will result in an error.
The MOD function in Excel is a mathematical tool that returns the remainder after a number is divided by a divisor. It is particularly useful for determining whether a number is even or odd, or for finding periodic patterns in data.
In simpler terms, the MOD function helps you perform calculations involving remainders, making it easier to analyze numerical data.
Imagine you are tracking the attendance of students in a class, and you have the following data in an Excel spreadsheet:
| Student | Attendance Days |
|---|---|
| Alice | 15 |
| Bob | 22 |
| Charlie | 18 |
| David | 25 |
| Eve | 30 |
You want to find out which students have attended an odd number of days.
To determine if the attendance days for each student are odd, you would use the MOD formula as follows:
=MOD(B2, 2)When you apply the formula to each student's attendance days, you will get the following results:
| Student | Attendance Days | MOD Result |
|---|---|---|
| Alice | 15 | 1 |
| Bob | 22 | 0 |
| Charlie | 18 | 0 |
| David | 25 | 1 |
| Eve | 30 | 0 |
Here, the MOD function returns 1 for Alice and David, indicating they attended an odd number of days (15 and 25, respectively).
The MOD function is particularly useful when you need to identify patterns or characteristics in numerical data, such as checking for even or odd numbers, or when working with cycles in data analysis. It allows you to quickly derive insights without complex calculations.
Understanding how to use the MOD function can significantly enhance your data analysis capabilities in Excel, enabling you to extract meaningful insights from your datasets.
Happy calculating!
You have a table where Column A contains order numbers and Column B contains the corresponding delivery dates. You can use the MOD function to determine which orders were delivered on odd-numbered days of the month. This allows for easy identification of delivery patterns and helps in analyzing the efficiency of the delivery schedule without the need for more complex date functions.
Beyond the MOD function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.
Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.
Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.
Browse our complete library of Excel 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.