Skip to content

MROUND

Rounds a number to the nearest multiple you choose, such as 5, 0.05 or a pack size of 12.

Syntax

=MROUND(, )

Math and trigonometry

All versions of Excel.

Try it

Edit the formula in B2 or change the inputs. The sheet recalculates as you type.

B2
A
B
C
1
Value
Nearest 5
2
47
45
3

B2 =MROUND(A2,5) returns 45

How MROUND works

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.

How MROUND works

=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.

Signs must match

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).

Typical uses

  • Prices: round to the nearest 5p, 0.25 or whole pound.
  • Orders: round a quantity to the nearest multiple of a pack size.
  • Time: round minutes to the nearest 15 or 30.
  • Quotes and estimates: round to the nearest 100 or 500.

MROUND compared with other rounding functions

  • MROUND goes to the nearest multiple. It can round up or down.
  • CEILING.MATH always rounds up to a multiple, which suits "you can only order full cartons".
  • FLOOR.MATH always rounds down to a multiple.
  • ROUND uses powers of ten only.

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.

Quick checks

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!.

Arguments

number
The number to round, such as B2.
multiple
The step to round to, such as 5, 0.05 or 12. It must have the same sign as number, or MROUND returns #NUM!. A multiple of 0 returns 0.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

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
A
B
C
1
Value
Nearest 5
2
47
45
3

B2 =MROUND(A2,5) returns 45

Example 2

Round to a larger step

B2 =MROUND(A2,25)

Result: 125

137 / 25 is 5.48, so the nearest multiple is 5 x 25 = 125.

B2
A
B
C
1
Estimate
Nearest 25
2
137
125
3

B2 =MROUND(A2,25) returns 125

Example 3

Round a quantity to a pack size

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
A
B
C
1
Order qty
Pack size
Rounded qty
2
140
12
144
3

C2 =MROUND(A2,B2) returns 144

Example 4

A halfway value rounds away from zero

B2 =MROUND(A2,5)

Result: 10

7.5 is exactly between 5 and 10. MROUND picks 10, the one away from zero.

B2
A
B
C
1
Value
Nearest 5
2
7.5
10
3

B2 =MROUND(A2,5) returns 10

Example 5

Mixed signs give #NUM!

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
A
B
C
1
Value
Multiple
Result
2
5
-2
#NUM!
3

C2 =MROUND(A2,B2) returns #NUM!

Your turn.

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.

C2
A
B
C
D
E
F
G
1
Item
Price
Quote
Order qty
Pack size
Rounded
2
Desk lamp
12.37
140
12
3
Monitor arm
8.92
4
Laptop stand
15.58
5
USB-C hub
4.03
6
Webcam
9.99
7
8

Common mistakes

  • A number and a multiple with opposite signs return #NUM!. This often appears when a column has both credits and debits.
  • The multiple is in the same units as the number. Using 5 on prices that need rounding to 5p sends everything to the nearest five pounds; use 0.05.
  • MROUND goes to the nearest multiple, not always up. For "full cartons only" use CEILING.MATH, otherwise you may order too few.
  • A multiple of 0 returns 0, which can look like a lost number. Check the multiple cell isn't blank.
  • Text such as "12 pack" returns #VALUE!. Keep units out of the multiple cell.

Questions people ask

How do I round to the nearest 5 in Excel?

Use `=MROUND(B2, 5)`. Use `0.05` for the nearest 5p, `25` for the nearest 25, and so on.

Why does MROUND return #NUM!?

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.

What is the difference between MROUND and CEILING.MATH?

MROUND rounds to the nearest multiple, up or down. CEILING.MATH always rounds up to the next multiple, and FLOOR.MATH always rounds down.

How do I round time to the nearest 15 minutes?

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.

Does MROUND round halves up?

It rounds a number exactly halfway between multiples away from zero. MROUND(7.5, 5) is 10 and MROUND(-7.5, -5) is -10.

Learn MROUND in a real sheet.

Tracks take you from the basics to modelling, one graded exercise at a time.