| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/LibreOffice/help/en-US/text/scalc/01/ |
Upload File : |
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<base href="../../../../">
<noscript><meta http-equiv="refresh" content="0; URL=../../../../en-US/noscript.html"></noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ceiling functions</title>
<link rel="shortcut icon" href="media/navigation/favicon.ico">
<link type="text/css" href="normalize.css" rel="Stylesheet">
<link type="text/css" href="prism.css" rel="Stylesheet">
<link type="text/css" href="default.css" rel="Stylesheet">
<script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules">
<button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav>
</div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks">
<input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for chosen module" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div>
</div></div>
<div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication">
<h1 id="hd_id971586216771519" dir="auto">Ceiling functions</h1>
<a name="ceiling"></a>
<a name="bm_id3152518"></a>
<meta itemprop="keywords" content="CEILING function">
<meta itemprop="keywords" content="rounding,up to multiples of significance">
<a name="bm_id3152530"></a>
<h2 id="hd_id3152518" dir="auto">
<a name="CEILINGh1"></a><a target="_top" href="en-US/text/scalc/01/func_ceiling.html#ceiling">CEILING</a>
</h2>
<p id="par_id3153422" class="paragraph" dir="auto"><span class="avis">Rounds a number to the nearest multiple of a significance value.</span></p>
<p id="par_id601586207136514" class="paragraph" dir="auto">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.</p>
<div class="warning">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/warning.svg" alt="warning" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id3163792" dir="auto">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.</p></div>
</div>
<br>
<div class="embedded">
<a name="func_head_syntax"></a>
<h3 id="hd_id126511265112651" dir="auto">Syntax</h3>
</div>
<p id="par_id3153454" class="code" dir="auto">CEILING(Number [; Significance [; Mode]])</p>
<a name="argnumber"></a>
<p id="par_id3153467" class="paragraph" dir="auto"><span class="emph">Number</span> is the number that is to be rounded, or a reference to a cell containing the number.</p>
<p id="par_id3155000" class="paragraph" dir="auto"><span class="emph">Significance</span> (optional) is the value, or a reference to a cell containing the value, to whose multiple <span class="emph">Number</span> is to be rounded. It defaults to +1 or -1 depending on the sign of <span class="emph">Number</span>.</p>
<p id="par_id3155020" class="paragraph" dir="auto"><span class="emph">Mode</span> (optional) is a number, or a reference to a cell containing a number. The function only uses <span class="emph">Mode</span> if both <span class="emph">Number</span> and <span class="emph">Significance</span> are negative. Then if <span class="emph">Mode</span> is given and not equal to zero, numbers are rounded down (away from zero); if <span class="emph">Mode</span> is equal to zero or not given, negative numbers are rounded up (towards zero).</p>
<div class="embedded">
<a name="func_head_example"></a>
<h3 id="hd_id980889808898088" dir="auto">Examples</h3>
</div>
<p id="par_id281586208138400" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING(3.45)</span> returns 4.</p>
<p id="par_id921586208142416" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING(3.45; 3)</span> returns 6.</p>
<p id="par_id921586208146984" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING(-1.234)</span> returns -1.</p>
<p id="par_id491586208152183" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING(-45.67; -2; 0)</span> returns -44.</p>
<p id="par_id291586208158119" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING(-45.67; -2; 1)</span> returns -46.</p>
<a name="ceilingprecise"></a>
<a name="bm_id2952518"></a>
<meta itemprop="keywords" content="CEILING.PRECISE function">
<meta itemprop="keywords" content="rounding,up to multiples of significance">
<a name="bm_id2952530"></a>
<h2 id="hd_id2952518" dir="auto">
<a name="CEILING.PRECISEh1"></a><a target="_top" href="en-US/text/scalc/01/func_ceiling.html#ceilingprecise">CEILING.PRECISE</a>
</h2>
<p id="par_id2953422" class="paragraph" dir="auto"><span class="avis">Rounds a number up to the nearest multiple of a significance value.</span></p>
<p id="par_id151586642494759" class="paragraph" dir="auto">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.</p>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id631586642933797" dir="auto">This function calculates identical results to the <a target="_top" href="en-US/text/scalc/01/func_ceiling.html#isoceiling">ISO.CEILING</a> function.</p></div>
</div>
<br>
<div class="embedded">
<a name="func_head_syntax"></a>
<h3 id="hd_id126511265112651" dir="auto">Syntax</h3>
</div>
<p id="par_id2953454" class="code" dir="auto">CEILING.PRECISE(Number [; Significance])</p>
<div class="embedded">
<a name="argnumber"></a>
<p id="par_id3153467" class="paragraph" dir="auto"><span class="emph">Number</span> is the number that is to be rounded, or a reference to a cell containing the number.</p>
</div>
<p id="par_id2955000" class="paragraph" dir="auto"><span class="emph">Significance</span> (optional) is the value, or a reference to a cell containing the value, to whose multiple <span class="emph">Number</span> is to be rounded. It defaults to 1.</p>
<div class="embedded">
<a name="func_head_example"></a>
<h3 id="hd_id980889808898088" dir="auto">Examples</h3>
</div>
<p id="par_id201586213398634" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING.PRECISE(3.45)</span> returns 4.</p>
<p id="par_id651586213406243" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING.PRECISE(-45.67; 2)</span> returns -44.</p>
<div class="embedded">
<a name="sectiontechinfo"></a>
<h4 id="hd_id301640873452726" dir="auto">Technical information</h4>
</div>
<div class="embedded">
<a name="4.3"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041643" dir="auto">This function is available since LibreOffice 4.3.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="notODFF"></a>
<p id="par_id251640873774457" class="paragraph" dir="auto">This function is not part of the <span class="emph">Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format</span> standard. The name space is</p>
</div>
<p id="par_id341640373986703" class="paragraph" dir="auto"><span class="literal">COM.MICROSOFT.CEILING.PRECISE</span></p>
<a name="ceilingmath"></a>
<a name="bm_id911516997198644"></a>
<meta itemprop="keywords" content="CEILING.MATH function">
<a name="bm_id511516997249645"></a>
<h2 id="hd_id91516997330445" dir="auto">
<a name="CEILING.MATHh1"></a><a target="_top" href="en-US/text/scalc/01/func_ceiling.html#ceilingmath">CEILING.MATH</a>
</h2>
<p id="par_id81516997342088" class="paragraph" dir="auto"><span class="avis">Rounds a number to the nearest multiple of a significance value.</span></p>
<p id="par_id911586642319078" class="paragraph" dir="auto">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.</p>
<div class="warning">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/warning.svg" alt="warning" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id291516998575663" dir="auto">This function exists for interoperability with Microsoft Excel 2013 or newer.</p></div>
</div>
<br>
<div class="embedded">
<a name="func_head_syntax"></a>
<h3 id="hd_id126511265112651" dir="auto">Syntax</h3>
</div>
<p id="par_id841516997669932" class="code" dir="auto">CEILING.MATH(Number [; Significance [; Mode]])</p>
<div class="embedded">
<a name="argnumber"></a>
<p id="par_id3153467" class="paragraph" dir="auto"><span class="emph">Number</span> is the number that is to be rounded, or a reference to a cell containing the number.</p>
</div>
<p id="par_id491516997725772" class="paragraph" dir="auto"><span class="emph">Significance</span> (optional) is the value, or a reference to a cell containing the value, to whose multiple <span class="emph">Number</span> is to be rounded. It defaults to 1.</p>
<p id="par_id451516997742909" class="paragraph" dir="auto"><span class="emph">Mode</span> (optional) is a number, or a reference to a cell containing a number. If <span class="emph">Mode</span> is given and not equal to zero, a negative <span class="emph">Number</span> is rounded down (away from zero). If <span class="emph">Mode</span> is equal to zero or is not given, a negative <span class="emph">Number</span> is rounded up (towards zero).</p>
<div class="embedded">
<a name="func_head_example"></a>
<h3 id="hd_id980889808898088" dir="auto">Examples</h3>
</div>
<p id="par_id331586208590009" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING.MATH(3.45)</span> returns 4.</p>
<p id="par_id481586208595809" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING.MATH(3.45; -3)</span> returns 6.</p>
<p id="par_id641586208600665" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING.MATH(-1.234)</span> returns -1.</p>
<p id="par_id151586208604536" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING.MATH(-45.67; -2; 0)</span> returns -44.</p>
<p id="par_id971586208611345" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING.MATH(-45.67; +2; 1)</span> returns -46.</p>
<div class="embedded">
<a name="sectiontechinfo"></a>
<h4 id="hd_id301640873452726" dir="auto">Technical information</h4>
</div>
<div class="embedded">
<a name="5.0"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041650" dir="auto">This function is available since LibreOffice 5.0.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="notODFF"></a>
<p id="par_id251640873774457" class="paragraph" dir="auto">This function is not part of the <span class="emph">Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format</span> standard. The name space is</p>
</div>
<p id="par_id341646873986703" class="paragraph" dir="auto"><span class="literal">COM.MICROSOFT.CEILING.MATH</span></p>
<a name="ceilingxcl"></a>
<a name="bm_id921516998608939"></a>
<meta itemprop="keywords" content="CEILING.XCL function">
<a name="bm_id221516998652517"></a>
<h2 id="hd_id411516998838823" dir="auto">
<a name="CEILING.XCLh1"></a><a target="_top" href="en-US/text/scalc/01/func_ceiling.html#ceilingxcl">CEILING.XCL</a>
</h2>
<p id="par_id811516998845826" class="paragraph" dir="auto"><span class="avis">Rounds a number to the nearest multiple of a significance value.</span></p>
<p id="par_id361586213828675" class="paragraph" dir="auto">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.</p>
<div class="warning">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/warning.svg" alt="warning" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id881586213934118" dir="auto">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.</p></div>
</div>
<br>
<div class="embedded">
<a name="func_head_syntax"></a>
<h3 id="hd_id126511265112651" dir="auto">Syntax</h3>
</div>
<p id="par_id251516998856873" class="code" dir="auto">CEILING.XCL(Number; Significance)</p>
<div class="embedded">
<a name="argnumber"></a>
<p id="par_id3153467" class="paragraph" dir="auto"><span class="emph">Number</span> is the number that is to be rounded, or a reference to a cell containing the number.</p>
</div>
<p id="par_id151516998882622" class="paragraph" dir="auto"><span class="emph">Significance</span> is the value, or a reference to a cell containing the value, to whose multiple <span class="emph">Number</span> is to be rounded.</p>
<div class="embedded">
<a name="func_head_example"></a>
<h3 id="hd_id980889808898088" dir="auto">Examples</h3>
</div>
<p id="par_id421586214128242" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING.XCL(3.45,2)</span> returns 4.</p>
<p id="par_id651586214132234" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING.XCL(-45.67; 2)</span> returns -44.</p>
<p id="par_id811586214136666" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CEILING.XCL(-45.67; -2)</span> returns -46.</p>
<div class="embedded">
<a name="sectiontechinfo"></a>
<h4 id="hd_id301640873452726" dir="auto">Technical information</h4>
</div>
<div class="embedded">
<a name="5.0"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041650" dir="auto">This function is available since LibreOffice 5.0.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="notODFF"></a>
<p id="par_id251640873774457" class="paragraph" dir="auto">This function is not part of the <span class="emph">Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format</span> standard. The name space is</p>
</div>
<p id="par_id341640873786703" class="paragraph" dir="auto"><span class="literal">COM.MICROSOFT.CEILING</span></p>
<a name="isoceiling"></a>
<a name="bm_id8952518"></a>
<meta itemprop="keywords" content="ISO.CEILING function">
<meta itemprop="keywords" content="rounding,up to multiples of significance">
<a name="bm_id8952530"></a>
<h2 id="hd_id8952518" dir="auto">
<a name="ISO.CEILINGh1"></a><a target="_top" href="en-US/text/scalc/01/func_ceiling.html#isoceiling">ISO.CEILING</a>
</h2>
<p id="par_id8953422" class="paragraph" dir="auto"><span class="avis">Rounds a number up to the nearest multiple of a significance value.</span></p>
<p id="par_id101586214229587" class="paragraph" dir="auto">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.</p>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id821586214265060" dir="auto">This function calculates identical results to the <a target="_top" href="en-US/text/scalc/01/func_ceiling.html#ceilingprecise">CEILING.PRECISE</a> function.</p></div>
</div>
<br>
<div class="embedded">
<a name="func_head_syntax"></a>
<h3 id="hd_id126511265112651" dir="auto">Syntax</h3>
</div>
<p id="par_id8953454" class="code" dir="auto">ISO.CEILING(Number [; Significance])</p>
<div class="embedded">
<a name="argnumber"></a>
<p id="par_id3153467" class="paragraph" dir="auto"><span class="emph">Number</span> is the number that is to be rounded, or a reference to a cell containing the number.</p>
</div>
<p id="par_id8955000" class="paragraph" dir="auto"><span class="emph">Significance</span> (optional) is the value, or a reference to a cell containing the value, to whose multiple <span class="emph">Number</span> is to be rounded. It defaults to 1.</p>
<div class="embedded">
<a name="func_head_example"></a>
<h3 id="hd_id980889808898088" dir="auto">Examples</h3>
</div>
<p id="par_id801586214431463" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ISO.CEILING(3.45)</span> returns 4.</p>
<p id="par_id181586214438808" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ISO.CEILING(-45.67; 2)</span> returns -44.</p>
<div class="embedded">
<a name="sectiontechinfo"></a>
<h4 id="hd_id301640873452726" dir="auto">Technical information</h4>
</div>
<div class="embedded">
<a name="4.3"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041643" dir="auto">This function is available since LibreOffice 4.3.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="notODFF"></a>
<p id="par_id251640873774457" class="paragraph" dir="auto">This function is not part of the <span class="emph">Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format</span> standard. The name space is</p>
</div>
<p id="par_id341640873989703" class="paragraph" dir="auto"><span class="literal">COM.MICROSOFT.ISO.CEILING</span></p>
<a name="relatedtopics"></a><div class="relatedtopics">
<p class="related" itemprop="mentions" dir="auto"><a name="related"></a><span class="emph">Related Topics</span>
</p>
<div class="relatedbody" itemprop="mentions">
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id971677016806972" dir="auto"><a target="_blank" href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/CEILING">CEILING</a>, <a target="_blank" href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/CEILING.XCL">CEILING.XCL</a>, <a target="_blank" href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/CEILING.PRECISE">CEILING.PRECISE</a>, <a target="_blank" href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/ISO.CEILING">ISO.CEILING</a>, <a target="_blank" href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/CEILING.MATH">CEILING.MATH</a> wiki pages.</p></div>
</div>
<br>
<div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_floor.html#floor">FLOOR</a></p></div>
<div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_floor.html#floorxcl">FLOOR.XCL</a></p></div>
<div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_floor.html#floorprecise">FLOOR.PRECISE</a></p></div>
<div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_floor.html#floormath">FLOOR.MATH</a></p></div>
</div>
</div>
</div>
<div id="DonationFrame"></div>
<footer><div id="DEBUG" class="debug">
<h3 class="bug">Help content debug info:</h3>
<p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/scalc/01/func_ceiling.xhp" target="_blank">/text/scalc/01/func_ceiling.xhp</a></p>
<p dir="auto">Title is: Ceiling functions</p>
<p id="bm_module" dir="auto"></p>
<p id="bm_system" dir="auto"></p>
<p id="bm_HID" dir="auto"></p>
</div></footer>
</body>
</html>