What is the MROUND function?
=MROUND(number, multiple)MROUND rounds a number to the nearest multiple you choose. Use it to set prices in steps of 50 or round times to 15 minutes.
According to Microsoft, if the remainder of dividing number by multiple is at least half of multiple, MROUND rounds away from zero. If number and multiple have different signs, it returns #NUM!.
Arguments
- number
- The number or cell to round.
- multiple
- The multiple to round to. It must have the same sign as number.
MROUND examples
Example 1. Nearest multiple of 3
=MROUND(10, 3)An example from Microsoft: 9, because 10 is closer to 9 than to 12.
Example 2. Negative numbers
=MROUND(-10, -3)-9. It works when both are negative.
Example 3. Steps of 0.2
=MROUND(1.3, 0.2)1.4.
Common mistakes
Different signs
MROUND(5, -2) returns #NUM!. Match the signs.
Exact halves with decimal multiples
Microsoft notes that the rounding direction of an exact midpoint is not consistent when multiple is a decimal. For example, MROUND(6.05, 0.1) is 6.0 and MROUND(7.05, 0.1) is 7.1.
FAQ
- How is it different from CEILING and FLOOR?
- CEILING always rounds up, FLOOR always rounds down, MROUND rounds to the nearest.
- How do I round times to 15 minutes?
- Use a time as the multiple: =MROUND(A2, "0:15").