Membulatkan suatu bilangan ke kelipatan terdekat yang ditentukan
=MROUND(number, significance)
| Parameter | Deskripsi |
|---|---|
number |
The number that should be rounded. |
significance |
The multiple to use when rounding. |
Below are some examples of MROUND formulas with hardcoded values:
=MROUND(10,3) // returns 9
=MROUND(10,4) // returns 12
=MROUND(119,25) // returns 125
To round a number in A1 to the nearest multiple of 5, you can use MROUND like this:
=MROUND(A1,5) // round to nearest 5
To round negative numbers with MROUND, use a negative sign for significance:
=MROUND(-10,-3) // returns -9
=MROUND(-10,-4) // returns -12
=MROUND(-119,-25) // returns -125
MROUND can be used to round pricing to end with .99. The formula below will round a value in A1 to the nearest 1 dollar, subtract 1 cent, and return a
=MROUND(A1,1) - 0.01 // round to nearest .99
MROUND can be used to round time. To round a time in A1 to the nearest 15 minutes, you can use a formula like this:
=MROUND(A1,"0:15") // round to nearest 15 min