Excel MOD Function: Syntax, Examples & Tips

The MOD function calculates the remainder of a division, aiding in data analysis and simplifying calculations in Excel.
Excel
=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.

On this page
  1. Parameters
  2. What is a MOD Formula in Excel?
  3. A Practical Example
  4. MOD Formula
  5. Result of the Formula
  6. Why Use MOD?
  7. Key Takeaways:
  8. Example use case

Parameters

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.

What is a MOD Formula in Excel?

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.

A Practical Example

Imagine you are tracking the attendance of students in a class, and you have the following data in an Excel spreadsheet:

Attendance Data Table:

StudentAttendance Days
Alice15
Bob22
Charlie18
David25
Eve30

You want to find out which students have attended an odd number of days.

MOD Formula

To determine if the attendance days for each student are odd, you would use the MOD formula as follows:

Excel
=MOD(B2, 2)

Breakdown of the Formula:

  • B2: This is the cell containing the number you want to evaluate (attendance days).
  • 2: This is the divisor. The MOD function will return the remainder when the value in B2 is divided by 2.

Result of the Formula

When you apply the formula to each student's attendance days, you will get the following results:

StudentAttendance DaysMOD Result
Alice151
Bob220
Charlie180
David251
Eve300

Here, the MOD function returns 1 for Alice and David, indicating they attended an odd number of days (15 and 25, respectively).

Why Use MOD?

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.

Key Takeaways:

  • MOD: Returns the remainder after division, useful for identifying odd/even numbers.
  • Efficient Data Analysis: Helps you quickly analyze numerical patterns without complex formulas.
  • Common Use Cases: Ideal for attendance tracking, scheduling, and any scenario where you need to evaluate numerical characteristics.

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!

Example use case

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.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.