Function · Rounding
Excel MROUND function
The Excel MROUND function rounds to the nearest multiple. $2.33 to the nearest nickel is $2.35. $2.31, used on the CEILING.MATH page, rounds to $2.30.
Syntax =MROUND(number, multiple)
=MROUND(2.33,0.05)Arguments
| Name | Required | What to pass |
|---|---|---|
| number | Required | The number to round. |
| multiple | Required | The step. 0.05 is a nickel. The number and the multiple must have the same sign, or the result is #NUM!. |
Examples
A price to the nearest nickel
=MROUND(2.33,0.05)Result $2.35
| A | B | |
|---|---|---|
| 1 | Price | 2.33 |
| 2 | Step | 0.05 |
| 3 | Nearest nickel | 2.35 |
MROUND rounds to the nearest multiple of a step. $2.33 to the nearest nickel is $2.35, because 2.33 is 46.6 nickels and 47 nickels is the closer count. $2.31 is 46.2 nickels, so the same function returns $2.30. CEILING.MATH of $2.31 is $2.35 and FLOOR.MATH of $2.31 is $2.30. MROUND is the one that picks the nearer of those two.
A value exactly halfway between two multiples rounds away from zero. 2.325 is halfway from 2.30 to 2.35, and MROUND returns 2.35. The number and the multiple have to share a sign. Before Excel 2007 this function lived in the Analysis ToolPak. Current Excel has it built in.