MROUND rounds a number to the nearest multiple of a value you specify. It is ideal for pricing to the nearest 5 cents, scheduling to the nearest quarter hour, or ordering stock in fixed pack sizes.
=MROUND(number, multiple)What does MROUND do?
MROUND is a Math & trigonometry function that rounds a number to the nearest multiple of another number. For example, =MROUND(17, 5) returns 15 because 15 is the closest multiple of 5 to 17. If the number is exactly halfway between two multiples, MROUND rounds away from zero, so =MROUND(12.5, 5) returns 15.
This matters because many real-world quantities come in fixed increments: prices in 5-cent steps, time in 15-minute blocks, stock in packs of 12, or measurements in standard lengths. Manually adjusting each value is slow and error-prone. MROUND does it consistently in one formula, so your data stays clean and your calculations stay predictable.
Imagine you run a small shop and need to set retail prices to the nearest 5 cents after applying a markup. Or you manage a team and must bill clients in quarter-hour increments. MROUND handles both cases instantly, and it works with positive and negative numbers.
When to use MROUND
- Round prices to the nearest 5 or 10 cents after applying a discount or markup.
- Round billable time to the nearest 15, 30, or 60 minutes.
- Order inventory in fixed pack sizes such as 12, 24, or 50 units.
- Round measurements to the nearest standard length or weight increment.
- Adjust scores or ratings to the nearest half point or whole point.
- Round currency conversions to the nearest coin denomination.
MROUND syntax
=MROUND(number, multiple)| Argument | Required? | What to enter |
|---|---|---|
number | Required | The value you want to round. It can be a number, a cell reference, or a formula result. Example: 17 or B2. |
multiple | Required | The increment to round to. Must have the same sign as number (both positive or both negative). Example: 5 rounds to the nearest multiple of 5. |
What it returns: A number rounded to the nearest multiple of the specified value. If number and multiple have different signs, MROUND returns the #NUM! error. If multiple is zero, MROUND returns zero.
MROUND examples
1 Round a single number to the nearest 5
The goal is to see how MROUND behaves with a simple positive number. The formula =MROUND(B2, 5) takes the value in B2 (17) and finds the closest multiple of 5. Multiples of 5 near 17 are 15 and 20; 15 is closer, so the result is 15. This shows the basic rounding logic before applying it to a table.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Value | |||
| 2 | Widget | 17 | 15 | ||
| 3 | Gadget | 23 | |||
| 4 | Doohickey | 42 | |||
| 5 |
2 Round prices to the nearest 5 cents
A shop applies a 15% markup and wants retail prices in 5-cent increments. Column B holds the base cost, and column C holds the marked-up price. The formula =MROUND(C2, 0.05) rounds each marked-up price to the nearest 0.05. For 12.65, the nearest multiples of 0.05 are 12.65 itself, so it stays 12.65. For 17.25, it also stays 17.25. This keeps prices tidy without manual editing.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Product | Base Cost | Marked Up | |||
| 2 | Notebook | 11 | 12.65 | 12.65 | ||
| 3 | Pen Set | 15 | 17.25 | |||
| 4 | Folder | 8 | 9.2 | |||
| 5 | Stapler | 22 | 25.3 | |||
| 6 |
3 Round billable time to the nearest quarter hour
A consultant bills in 15-minute blocks. Column B stores hours worked as decimals (0.25 = 15 minutes). The formula =MROUND(B2, 0.25) rounds each value to the nearest quarter hour. For 1.1 hours, the nearest multiples of 0.25 are 1.0 and 1.25; 1.1 is closer to 1.0, so the result is 1.0. This ensures invoices use standard time increments.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Client | Hours | |||
| 2 | Alpha Co | 1.1 | 1 | ||
| 3 | Beta Ltd | 2.4 | |||
| 4 | Gamma Inc | 0.8 | |||
| 5 | Delta LLC | 3.7 | |||
| 6 |
4 Order stock in fixed pack sizes
A warehouse orders items in packs of 12. Column B shows the required quantity. The formula =MROUND(B2, 12) rounds each requirement to the nearest multiple of 12. For 50 units, the nearest multiples of 12 are 48 and 60; 50 is closer to 48, so the order quantity is 48. This prevents over-ordering while staying within pack sizes.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Required | |||
| 2 | Bolts | 50 | 48 | ||
| 3 | Nuts | 73 | |||
| 4 | Washers | 28 | |||
| 5 | Screws | 95 | |||
| 6 |
Common MROUND errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #NUM! | The number and multiple arguments have different signs, such as =MROUND(10, -3). | Make both arguments positive or both negative. Use =MROUND(10, 3) or =MROUND(-10, -3). |
| #VALUE! | One or both arguments are text instead of numbers. | Check that the cells contain numbers, not text. Remove spaces or convert text to numbers. |
| #DIV/0! | This is not a standard MROUND error, but if multiple is zero, MROUND returns zero rather than an error. If you see #DIV/0!, it comes from another part of the formula. | Ensure the multiple is not zero if you expect a non-zero result. |
| Wrong rounding direction | MROUND rounds to the nearest multiple, not always up or down. Users sometimes expect it to always round up. | Use CEILING if you need to always round up, or FLOOR to always round down. |
Tips for using MROUND
- Use MROUND when you need the nearest multiple; use CEILING or FLOOR when you need a specific direction.
- For prices, use a multiple like 0.05 for 5 cents or 0.1 for 10 cents.
- For time in hours, use 0.25 for 15 minutes, 0.5 for 30 minutes, or 1 for one hour.
- Remember that MROUND rounds halfway values away from zero, so 12.5 with multiple 5 becomes 15.
- Combine MROUND with ROUND or other functions if you need to round to a multiple and then to a certain number of decimals.
- Test your formula with a few sample values to confirm the rounding direction matches your business rule.
Frequently asked questions
What is the difference between MROUND and ROUND?
ROUND rounds to a specified number of decimal places, while MROUND rounds to the nearest multiple of a number. For example, =ROUND(17, 0) returns 17, but =MROUND(17, 5) returns 15.
Can MROUND handle negative numbers?
Yes, as long as the multiple has the same sign. =MROUND(-23, -10) returns -20. If the signs differ, you get a #NUM! error.
Why does MROUND return zero when the multiple is zero?
Because any number rounded to a multiple of zero is defined as zero in Excel. Avoid using zero as the multiple unless you intentionally want zero.
How do I round time to the nearest 15 minutes with MROUND?
If time is stored as a decimal number of hours, use =MROUND(A1, 0.25). If it is stored as an Excel time value, use =MROUND(A1, TIME(0,15,0)).
Does MROUND work with cell references?
Yes, you can use cell references for both arguments, such as =MROUND(B2, C2). Just ensure the referenced cells contain numbers.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. MROUND reference