Example 1
Round to the nearest 5
B2 =MROUND(A2,5)
Result: 45
47 is 2 from 45 and 3 from 50, so 45 is nearer.
B2 =MROUND(A2,5) returns 45
Rounds a number to the nearest multiple you choose, such as 5, 0.05 or a pack size of 12.
Syntax
=MROUND(, )
All versions of Excel.
Try it
Edit the formula in B2 or change the inputs. The sheet recalculates as you type.
B2 =MROUND(A2,5) returns 45
MROUND rounds a number to the nearest multiple of another number. Where ROUND can only work in powers of ten, MROUND can use any step: 5, 25, 0.05, a pack size of 12, or 15 minutes.
=MROUND(47, 5) returns 45, because 45 is the multiple of 5 nearest to 47. =MROUND(137, 25) returns 125. For a number exactly halfway between two multiples, MROUND rounds away from zero, so =MROUND(7.5, 5) returns 10.
The multiple does not have to be a whole number. =MROUND(4.62, 0.05) returns 4.6, which is useful for cash rounding or price points.
MROUND returns #NUM! when number and multiple have different signs. =MROUND(-10, 3) fails, but =MROUND(-10, -3) returns -9. If your numbers can be negative, take the sign from the data: =MROUND(B2, SIGN(B2)*5).
CEILING.MATH always rounds up to a multiple, which suits "you can only order full cartons".FLOOR.MATH always rounds down to a multiple.An alternative that avoids the sign rule is =ROUND(B2/5, 0)*5. It works for positive and negative numbers and mirrors what MROUND does. MROUND is shorter to read, though, which matters when someone else audits the sheet.
Before you trust a column of MROUND results, check that the multiple really is the step you meant. A multiple of 5 on prices of 12.37 rounds to 10, not to the nearest 5p. Write the multiple in the same units as the number.
MROUND works on numbers only. Text returns #VALUE!.
B2.5, 0.05 or 12. It must have the same sign as number, or MROUND returns #NUM!. A multiple of 0 returns 0.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B2 =MROUND(A2,5)
Result: 45
47 is 2 from 45 and 3 from 50, so 45 is nearer.
B2 =MROUND(A2,5) returns 45
Example 2
B2 =MROUND(A2,25)
Result: 125
137 / 25 is 5.48, so the nearest multiple is 5 x 25 = 125.
B2 =MROUND(A2,25) returns 125
Example 3
C2 =MROUND(A2,B2)
Result: 144
140 / 12 is 11.67, which is nearer to 12 packs than to 11, so the result is 144.
C2 =MROUND(A2,B2) returns 144
Example 4
B2 =MROUND(A2,5)
Result: 10
7.5 is exactly between 5 and 10. MROUND picks 10, the one away from zero.
B2 =MROUND(A2,5) returns 10
Example 5
C2 =MROUND(A2,B2)
Result: #NUM!
A positive number with a negative multiple fails. Flip the sign of the multiple, or use ROUND(A2/B2,0)*B2.
C2 =MROUND(A2,B2) returns #NUM!
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In C2, round the price in B2 to the nearest 5p. Fill it down to C6.
Answer in C2, then it fills down to C6.
#NUM!. This often appears when a column has both credits and debits.#VALUE!. Keep units out of the multiple cell.Use `=MROUND(B2, 5)`. Use `0.05` for the nearest 5p, `25` for the nearest 25, and so on.
The number and the multiple have different signs. Make them match, or use `=ROUND(B2/5, 0)*5`, which works for positive and negative numbers.
MROUND rounds to the nearest multiple, up or down. CEILING.MATH always rounds up to the next multiple, and FLOOR.MATH always rounds down.
If the time is in minutes as a number, use `=MROUND(A2, 15)`. For a time value, use `=MROUND(A2, TIME(0,15,0))` and format the result as a time.
It rounds a number exactly halfway between multiples away from zero. MROUND(7.5, 5) is 10 and MROUND(-7.5, -5) is -10.
Tracks take you from the basics to modelling, one graded exercise at a time.