INT vs MOD Function in Excel: What is the Difference? (Easy Guide)
Learn the difference between INT and MOD functions in Excel. Very simple examples to help you understand whole numbers and remainders.
Hello friends! Today I share with you INT and MOD formulas in Excel along with easy examples.
Sometimes you divide a number, and you get decimal (like 10 / 3 = 3.33). INT and MOD are brothers that help you split that result! INT gives you the whole number, and MOD gives you the leftover (remainder). Very easy!
🛠️ How to write INT and MOD
1. INT Function (Integer)
INT removes all the decimals and only keeps the whole number. It always round down.
Syntax:
=INT(number)
2. MOD Function (Modulo)
MOD only gives you the leftover number (remainder) after you divide.
Syntax:
=MOD(number, divisor)
number: The number you want to divide.divisor: The number to divide by.
📊 Short & Clear Example
Imagine you have 10 apples and you want to share with 3 friends.
- INT tells you how many apples each friend get.
- MOD tells you how many apples left for you!
| What it is | Formula | Result | Why? |
|---|---|---|---|
| Share Apples | =10/3 | 3.33 | Standard division |
| Use INT | =INT(10/3) | 3 | Each friend get 3 whole apples! |
| Use MOD | =MOD(10, 3) | 1 | 3 x 3 = 9. So 1 apple is left over! |
💡 Easy Pro Tips
- Find Even or Odd: You can use
MODto check if number is Even or Odd! Just type=MOD(A1, 2). If result is0, it is Even. If result is1, it is Odd! Very useful. - Time Calculation:
MODis very good for calculating time difference across midnight! Example:=MOD(EndTime - StartTime, 1). - INT on Negative Number: Be careful!
INTalways round down. So=INT(-4.3)will become-5, not-4.
📚 Useful Resources
Related Tutorials
Opens in new tab ↗How to Use the SUM Formula in Excel: Easy Guide
Learn how to add numbers in Excel using the SUM formula. Includes simple examples, quick shortcuts, and fixes for common errors.
How to Use RATE Function in Excel (Find Hidden Interest)
Learn how to use RATE function in Excel to find out the real interest rate the bank is charging you. Very simple and easy!
How to Use PV Function in Excel (Find Present Value)
Learn how to use PV function in Excel to find out how much a loan is worth right now. Very simple and easy examples.