Applies ToExcel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2016

MROUND returns a number rounded to the desired multiple.

Syntax

MROUND(number, multiple)

The MROUND function syntax has the following arguments:

  • Number    Required. The value to round.

  • Multiple    Required. The multiple to which you want to round number.

Remarks

  • MROUND rounds up, away from zero, if the remainder of dividing number by multiple is greater than or equal to half the value of multiple.

  • The Number and Multiple arguments must have the same sign. If not, a #NUM error is returned.

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Formula

Description

Result

=MROUND(10, 3)

Rounds 10 to the nearest multiple of 3.

9

=MROUND(-10, -3)

Rounds -10 to the nearest multiple of -3.

-9

=MROUND(1.3, 0.2)

Rounds 1.3 to the nearest multiple of 0.2.

1.4

=MROUND(5, -2)

Returns the #NUM! error message because -2 and 5 have different signs.

#NUM!

Known Limitations

When a decimal value is provided to the Multiple argument , the rounding direction is undefined for midpoint numbers. For example MROUND(6.05,0.1) returns 6.0 while MROUND(7.05,0.1) returns 7.1.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.