Round a number up to nearest multiple
=CEILING.MATH(number, [significance], [mode])
| Parameter | Description |
|---|---|
number |
The number that should be rounded. |
significance |
[optional] Multiple to use when rounding. Default is 1. |
mode |
[optional] Round negative numbers toward or away from zero. Default is 0. |
By default, CEILING.MATH rounds to the nearest integer, using a significance of 1.
=CEILING.MATH(1.25) // returns 2
Provide a value for significance to round to a different multiple:
=CEILING.MATH(1.25,3) // returns 3
=CEILING.MATH(4.1,3) // returns 6
=CEILING.MATH(4.1,0.5) // returns 4.5
By default, positive numbers with decimal portions are rounded up to the nearest integer and negative numbers with decimal portions are rounded toward
=CEILING.MATH(6.3) // returns 7
=CEILING.MATH(-6.3) // returns -6
Control for rounding negative numbers toward zero or away from zero is provided via the optional mode argument. Mode defaults to zero. When mode is ze
=CEILING.MATH(-4.1) // returns -4
=CEILING.MATH(-4.1,1) // returns -4
=CEILING.MATH(-4.1,1,1) // returns -5
=CEILING.MATH(-4.1,1,TRUE) // returns -5