Bulatkan suatu bilangan ke atas ke kelipatan terdekat
=CEILING(number, significance)
| Parameter | Deskripsi |
|---|---|
number |
The number that should be rounded. |
significance |
The multiple to use when rounding. |
The formulas below show how CEILING rounds up values to a given multiple:
=CEILING(10,3) // returns 12
=CEILING(36,7) // returns 42
=CEILING(309,25) // returns 325
=CEILING(610,100) // returns 700
=CEILING(-5.4,1) // returns -5
To round a number in A1 up to the nearest multiple of 5, you can use a formula like this:
=CEILING(A1,5)
CEILING can be useful to set pricing after currency conversion or discounts are applied. For example, the formula below will round a value in A1 up to
=CEILING(A1,1) - 0.01
CEILING understands time formats and can be used to round time up to a given multiple. For example, to round a time in A1 up to the nearest 15 minutes
=CEILING(A1,"0:15") // round up to nearest 15 min