CEILING
The CEILING function rounds a number away from 0 to the nearest multiple of the specified factor. Both arguments are number values.
CEILING(num-to-round, multiple-factor)
num-to-round: The number to be rounded.
multiple-factor: The number to use to determine the closest multiple. multiple-factor must have the same sign as num-to-round.
Examples |
---|
=CEILING(0.25, 1) returns 1, the nearest multiple of 1 that is greater than or equal to 0.25. =CEILING(1.25, 1) returns 2, the nearest multiple of 1 that is greater than or equal to 1.25. =CEILING(-1.25, -1) returns -2, the nearest multiple of 1 that is a greater negative value than -1.25. =CEILING(5, 2) returns 6, the nearest multiple of 2 that is greater than 5. =CEILING(73, 10) returns 80, the nearest multiple of 10 that is greater than 73. =CEILING(7, 2.5) returns 7.5, the nearest multiple of 2.5 that is greater than 7. |