Returns a number rounded up to a multiple of another given number.
Syntax
number: The number to be rounded up. Eg., -4.37
mult: The multiple to which you want to round the given number. Eg., 2
mode: Mode is used when the given number is negative.
If the mode is non-zero, CEILING rounds up to a multiple greater than or equal to the number.
Remarks
The value of the parameter mult cannot be negative when the given number is positive.
The value of the parameter mult can be positive or negative when the given number is negative.
Examples
|
Formula |
Result |
|
=CEILING(-4.37; 2; 0) |
-6 |
|
=CEILING(-4.37; 2; 1) |
-4 |
|
=CEILING(3.5;2) |
4 |
In the first example function, CEILING returns -6 the result, because the nearest multiple of 2 that is below the given number (-4.37) is -6.
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
|
#NUM! |
|
Similar Functions