Math & Trig All versions ◉ 26 views

=MOD()

Returns the remainder after number is divided by divisor. The result has the same sign as divisor.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=MOD(number, divisor)
Hover argument names in the table for details.
Output typeNumber
Popularity55 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =MOD() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
📥 Download MOD.xlsx — Coming soon ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
number Number Required The number for which you want to find the remainder.
divisor Number Required The number by which you want to divide number.

▣ Examples

Remainder of 3/2 =MOD(3, 2)
Result: 1
Remainder of -3/2. The sign is the same as divisor =MOD(-3, 2)
Result: 1
Remainder of 3/-2. The sign is the same as divisor =MOD(3, -2)
Result: -1
Remainder of -3/-2. The sign is the same as divisor =MOD(-3, -2)
Result: -1

§ Remarks

  • If divisor is 0, MOD returns the #DIV/0! error value.
  • The MOD function can be expressed in terms of the INT function:
  • MOD(n, d) = n - d*INT(n/d)

✦ Tips

  • The MOD function can be expressed in terms of the INT function:
  • MOD(n, d) = n - d*INT(n/d)

⚠ Common Errors

#DIV/0! If divisor is 0, MOD returns the #DIV/0! error value.
Fix: Check the divisor

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.