Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=MOD(A2,B2)Computed by a real spreadsheet engine on the sample data below.
| Dividend | Divisor |
| 17 | 5 |
=MOD(A2,B2)→2
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
In Excel and Sheets, MOD takes the sign of the divisor, so MOD(-17, 5) returns 3, not -2. Use care with negatives.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: