MROUND()

Syntax. MROUND(number,multiple)

Definition. This function returns a number rounded to a multiple.

Arguments

  • number (required) The value to round

  • multiple (required) The multiple to which you want to round number

Background. The MROUND() function allows you to round a number to the multiple of a given value. 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. If the number is less than or equal to half of the multiple, the number is rounded down.

Examples. All sales prices in a store have to be divisible by 0.05—for example: $10.05, $11.10, $15.25, or $20.00.

  • =MROUND(12.31,0.05) returns $12.35.

  • =MROUND(0.32,0.05) returns $0.30.

  • =MROUND(1.24,0.05) returns $1.25 ...

Get Microsoft® Excel® 2010 Formulas & Functions Inside Out now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.