CEILING function - Zoho Sheet - Help Guide

CEILING

Returns a number rounded up to a multiple of another given number.

 

Syntax

 

CEILING(number; mult; [mode])

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.

If the mode is zero or omitted, CEILING rounds up to a multiple below the given 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.


Get a hands-on experience of the function in the embedded range below.



Possible Errors

 

Errors

Meaning

#N/A!

  • The function could not find the value it was asked to look for. Commonly occurs in VLOOKUP and similar functions.

#NAME!

  • The function name is incorrect or invalid.

  • The given defined name (if any) is invalid.

  • There is a typo in the defined name used in the function.

  • Double quotes are missing for text values in the function.

  • Colon missing in a cell range reference.

#VALUE!

  • The given argument's data type is incorrect or invalid.
    For example, the function =DATE(A1:A3) will return a #VALUE error when a text value is present in the range.

#REF!

  • The given cell reference is incorrect or invalid. This error may occur when a cell/range has been deleted, moved, or pasted over.

#NUM!

  • The given mult value is negative, while number is positive.

 

Similar Functions