Rounding to Multiples With MROUND
Snap numbers to the nearest five, ten, or any multiple.
Rounding to Multiples With MROUND is a free Excel Formulas Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Snapping to a Multiple
Sometimes you do not want to round to a number of decimals, but to the nearest multiple: the nearest 5 cents, nearest 10 dollars, or nearest quarter hour.
The MROUND function does exactly that. Instead of asking how many decimals to keep, it asks what step size to snap to. This lesson shows how to round to any multiple you like.
The MROUND Syntax
MROUND takes two arguments:
- number the value to round
- multiple the step to round to
It returns the nearest multiple of that step. For example =MROUND(23, 5) rounds 23 to the nearest 5, which is 25, because 23 is closer to 25 than to 20.
=MROUND(23, 5)Which Way Does It Go?
MROUND rounds to the nearest multiple, up or down. The halfway point goes up.
So =MROUND(22, 5) gives 20 (closer to 20), =MROUND(23, 5) gives 25, and the exact midpoint =MROUND(22.5, 5) rounds up to 25. The step size, not decimal places, drives the result.
=MROUND(22, 5)Rounding Money to Nickels
A common retail need is pricing to the nearest 5 cents. Use 0.05 as the multiple.
=MROUND(4.93, 0.05) returns 4.95, and =MROUND(4.91, 0.05) returns 4.90. This keeps prices on tidy nickel boundaries that cash registers love.
=MROUND(4.93, 0.05)Rounding Time to Quarter Hours
Timesheets often round to the nearest 15 minutes. Since time in spreadsheets is a fraction of a day, 15 minutes is "0:15" or the value 1/96.
If a clocked time sits in A2, then =MROUND(A2, "0:15") snaps it to the nearest quarter hour. MROUND understands the time value and rounds it cleanly.
=MROUND(A2, "0:15")A Sign Rule to Remember
MROUND has one strict rule: the number and the multiple must share the same sign. Mixing a positive number with a negative multiple gives a #NUM! error.
So =MROUND(-23, -5) is fine and returns -25, but =MROUND(23, -5) errors out. Keep both arguments positive, or both negative.
=MROUND(-23, -5)MROUND vs ROUND
How is MROUND different from ROUND? ROUND controls decimal places; MROUND controls the step size.
You can imitate ROUND with MROUND using a power of ten: =MROUND(8.47, 0.01) behaves like rounding to 2 decimals, giving 8.47. But MROUND shines when the step is not a power of ten, like 5, 25, or 0.05.
=MROUND(8.47, 0.01)Meet CEILING and FLOOR
MROUND always picks the nearest multiple. If you must always go up or always go down to a multiple, use its cousins:
CEILING(number, multiple)rounds up to a multipleFLOOR(number, multiple)rounds down to a multiple
So =CEILING(23, 5) gives 25 and =FLOOR(23, 5) gives 20, regardless of which is closer.
=CEILING(23, 5)A FLOOR Example
Suppose a loyalty program awards one reward per full 10 dollars spent. You want to round a spend down to the nearest 10.
=FLOOR(47, 10) returns 40, meaning 4 rewards. FLOOR guarantees you never round above the amount actually spent, which is the conservative, correct choice here.
=FLOOR(47, 10)Choosing the Right Tool
Quick guide for multiple-based rounding:
MROUNDfor the nearest multiple (up or down).CEILINGwhen you must always round up to a multiple, such as packaging or capacity.FLOORwhen you must always round down, such as full units earned.
All three take the same two arguments: the number and the step. Pick by whether direction matters.
=MROUND(A2, 5)Using a Cell as the Multiple
The step does not have to be a literal number. You can store it in a cell and reference it, so changing one cell re-rounds everything.
If the rounding step lives in B1 (say 25) and the value in A2, then =MROUND(A2, $B$1) snaps A2 to the nearest 25. The dollar signs lock B1 so the formula copies cleanly down a column.
=MROUND(A2, $B$1)Quick Check
Test your understanding of MROUND.
Recap
You can now round to any step, not just decimal places:
MROUND(number, multiple)rounds to the nearest multiple; the midpoint goes up.- Number and multiple must share the same sign or you get
#NUM!. CEILINGalways rounds up to a multiple;FLOORalways rounds down.
These are ideal for prices, quarter-hour time, and packaging quantities.
=MROUND(A2, 0.05)Frequently asked questions
Is the “Rounding to Multiples With MROUND” lesson free?
Yes — the full text of “Rounding to Multiples With MROUND” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.
What will I learn in “Rounding to Multiples With MROUND”?
Snap numbers to the nearest five, ten, or any multiple. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Excel Formulas Academy?
No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Rounding to Multiples With MROUND” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Excel Formulas Academy lesson?
Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Rounding With ROUND, ROUNDUP, ROUNDDOWN
- Truncating With INT and TRUNC
- Rounding to Multiples With MROUND
- Formatting Numbers as Text With TEXT