Skip to content

How to Use Excel MOD Function?

Listen to this article

Microsoft Excel provides plenty of built-in functions and formulas for performing mathematical calculations. Sometimes, we want to perform division operations and get the remainder. In order to do it manually, we can use the MOD function. This function will help you get the remainder as quickly as possible.

This article will let you know how to use the Excel MOD function in the spreadsheet. Get an official version of MS Excel from the following link:


What is the MOD Function?

MOD is one of the built-in functions in Microsoft Excel. It comes under Math functions. We can use this function in our spreadsheet whenever we want to get the remainder by performing division operations.

1) Syntax

  • This is the basic syntax of the Excel MOD Function.

=MOD(number, divisor)

2) Arguments

  • number – The input number to be divided.
  • divisor – The number by which you want to divide the number.

3) Motive

  • This function gets the remainder from the division.

4) Return Value

  • It returns the remainder.

1) If the divisor is 0, it returns #DIV/0! Error value.
2) You can calculate MOD manually by using the below formula.
3) “n – d * INT (n/d)” where n is a number, d is a divisor.

What Will MOD Function Do?

As we said earlier, the MOD function will return the remainder of the two numbers after division. The result has the same sign as the divisor. This function is categorized as “Math” in Excel. Let’s see an example scenario to make you understand it easily.

Step 1: Here, we have come up with a set of integer values and divisors. We need to perform division and get the remainder as output. For that, we can use the MOD function.

Input valuesPin
Input values

Step 2: Now, we need to apply the following formula in any cell where we want to get the result.


Enter the formulaPin
Enter the formula

Step 3: Now, click on the Enter button to get the result.


Step 4: To fill down the remaining cells, you just drag down the first cell. It will auto-fill the remaining cells as shown in the below screenshot.

Fill down the valuesPin
Fill down the values

We hope that the given scenario helped you to understand the MOD function. Move to the below section if you have any confusion related to the working nature of this function.

Alternate Example

Here we will see how to apply the MOD function in the spreadsheet with simple examples.

1) Suppose you want to get the remainder by performing a division operation with two specific numbers, then you can directly apply it to the formula.

2) For example, we want to divide 100 by 30. We can apply the following formula in a cell where we want the result.


Type the formulaPin
Type the formula

3) Hit the Enter button to get the result, as shown in the below image.


By doing so, you can quickly get the remainder by performing division with the help of the MOD function.

Input that Causes Error

By seeing the below-given example, you will understand the input that causes errors in the spreadsheet. If the divisor is 0, it returns #DIV/0! Error value.

Example 2Pin
Example 2


To understand the usage of the MOD function, we have referred to the following articles. They helped us to know the purpose of this function. You can also check them out using the links: MOD function[1], and What is MOD?[2].



With the help of the given scenarios and examples, you can easily understand the purpose of the MOD function in Excel and how to apply it in the spreadsheet. The screenshots help to learn it even easier. Drop your feedback in the below comment section. Thanks for visiting AawExcel. Keep Learning!!

If you want to know what people think about this MOD Function of Excel, then we suggest you look for it on the Quora interaction webpage. From there you can get to know more about the Excel MOD function. Here, we have provided the link to Quora’s official website.

Video Tutorial

The following video will show you how to use the Excel MOD function in the spreadsheet with proper examples.

Read Ahead:


Leave a Reply

Your email address will not be published. Required fields are marked *

Share to...