EWCte‖Ceiling functions

M92qb‖

cGa5K‖CEILING

Co8xT‖Rounds a number to the nearest multiple of a significance value.

PfT3s‖For a positive number and a positive significance value, the function rounds up (away from zero). For a negative number and a negative significance value, the direction of rounding is determined by the value of a mode parameter. The function returns an error if the number and significance values have opposite signs.

warning

6AFh7‖If the spreadsheet is exported to Microsoft Excel, the CEILING function is exported as the equivalent CEILING.MATH function that has existed since Excel 2013. If you plan to use the spreadsheet with earlier Excel versions, use either CEILING.PRECISE that has existed since Excel 2010, or CEILING.XCL that is exported as the CEILING function compatible with all Excel versions.


ebLBc‖Syntax

3DwLL‖CEILING(Number [; Significance [; Mode]])

XHjhc‖Number is the number that is to be rounded, or a reference to a cell containing the number.

XEqxw‖Significance (optional) is the value, or a reference to a cell containing the value, to whose multiple Number is to be rounded. It defaults to +1 or -1 depending on the sign of Number.

AosjB‖Mode (optional) is a number, or a reference to a cell containing a number. The function only uses Mode if both Number and Significance are negative. Then if Mode is given and not equal to zero, numbers are rounded down (away from zero); if Mode is equal to zero or not given, negative numbers are rounded up (towards zero).

GAZG2‖Examples

Ka9pC‖=CEILING(3.45) returns 4.

UTtFZ‖=CEILING(3.45; 3) returns 6.

XGfA3‖=CEILING(-1.234) returns -1.

ZWjxy‖=CEILING(-45.67; -2; 0) returns -44.

Auwyx‖=CEILING(-45.67; -2; 1) returns -46.

rZ78k‖

JGH6b‖CEILING.PRECISE

aTD6P‖Rounds a number up to the nearest multiple of a significance value.

BjuBa‖For a positive number the function rounds up (away from zero). For a negative number, the function rounds up (towards zero). The sign of the significance value is ignored.

note

zDBKp‖This function calculates identical results to the ISO.CEILING function.


ebLBc‖Syntax

BASfr‖CEILING.PRECISE(Number [; Significance])

XHjhc‖Number is the number that is to be rounded, or a reference to a cell containing the number.

FaYeD‖Significance (optional) is the value, or a reference to a cell containing the value, to whose multiple Number is to be rounded. It defaults to 1.

GAZG2‖Examples

8WiRx‖=CEILING.PRECISE(3.45) returns 4.

KxeUC‖=CEILING.PRECISE(-45.67; 2) returns -44.

XAFa7‖Technical information

tip

iV7XA‖This function is available since LibreOfficeDev 4.3.


7AVhU‖This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.CEILING.PRECISE

WV9bx‖

AuCnM‖CEILING.MATH

AzJvD‖Rounds a number to the nearest multiple of a significance value.

QLGe7‖For a positive number the function rounds up (away from zero). For a negative number, the direction of rounding is determined by the value of a mode parameter. The sign of the significance value is ignored.

warning

aYczG‖This function exists for interoperability with Microsoft Excel 2013 or newer.


ebLBc‖Syntax

pcXnS‖CEILING.MATH(Number [; Significance [; Mode]])

XHjhc‖Number is the number that is to be rounded, or a reference to a cell containing the number.

EAezJ‖Significance (optional) is the value, or a reference to a cell containing the value, to whose multiple Number is to be rounded. It defaults to 1.

EiWLa‖Mode (optional) is a number, or a reference to a cell containing a number. If Mode is given and not equal to zero, a negative Number is rounded down (away from zero). If Mode is equal to zero or is not given, a negative Number is rounded up (towards zero).

GAZG2‖Examples

je22s‖=CEILING.MATH(3.45) returns 4.

g5xAQ‖=CEILING.MATH(3.45; -3) returns 6.

Eby7i‖=CEILING.MATH(-1.234) returns -1.

T4orc‖=CEILING.MATH(-45.67; -2; 0) returns -44.

opt6B‖=CEILING.MATH(-45.67; +2; 1) returns -46.

XAFa7‖Technical information

tip

jcAXr‖This function is available since LibreOfficeDev 5.0.


7AVhU‖This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.CEILING.MATH

EzE9t‖

xEwWL‖CEILING.XCL

2tuD3‖Rounds a number to the nearest multiple of a significance value.

tAyJj‖For a positive number and a positive significance value, the function rounds up (away from zero). For a negative number and a positive significance value, the function rounds up (towards zero). For a negative number and a negative significance value, the function rounds down (away from zero). The function returns an error if the number is positive and the significance value is negative.

warning

2CKjm‖This function exists for interoperability with Microsoft Excel 2007 or older. If a Calc spreadsheet is exported to Microsoft Excel, references to Calc’s CEILING.XCL function are exported as references to Excel’s CEILING function, which is compatible with all Excel versions. If a Microsoft Excel spreadsheet is imported into Calc, references to Excel’s CEILING function are imported as references to Calc’s CEILING.XCL function.


ebLBc‖Syntax

GspBr‖CEILING.XCL(Number; Significance)

XHjhc‖Number is the number that is to be rounded, or a reference to a cell containing the number.

eTSgx‖Significance is the value, or a reference to a cell containing the value, to whose multiple Number is to be rounded.

GAZG2‖Examples

6n7qn‖=CEILING.XCL(3.45,2) returns 4.

nU46D‖=CEILING.XCL(-45.67; 2) returns -44.

nbB96‖=CEILING.XCL(-45.67; -2) returns -46.

XAFa7‖Technical information

tip

jcAXr‖This function is available since LibreOfficeDev 5.0.


7AVhU‖This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.CEILING

GMzhD‖

2gaUP‖ISO.CEILING

5beBC‖Rounds a number up to the nearest multiple of a significance value.

SFZNu‖For a positive number the function rounds up (away from zero). For a negative number, the function rounds up (towards zero). The sign of the significance value is ignored.

note

wVZdq‖This function calculates identical results to the CEILING.PRECISE function.


ebLBc‖Syntax

GRocX‖ISO.CEILING(Number [; Significance])

XHjhc‖Number is the number that is to be rounded, or a reference to a cell containing the number.

hwhCW‖Significance (optional) is the value, or a reference to a cell containing the value, to whose multiple Number is to be rounded. It defaults to 1.

GAZG2‖Examples

FSFdP‖=ISO.CEILING(3.45) returns 4.

QHpJp‖=ISO.CEILING(-45.67; 2) returns -44.

XAFa7‖Technical information

tip

iV7XA‖This function is available since LibreOfficeDev 4.3.


7AVhU‖This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.ISO.CEILING