CEILING Function in ONLYOFFICE Spreadsheet Editor: Syntax and Examples
Use CEILING and ECMA.CEILING in ONLYOFFICE with worked rounding examples, documented syntax and explicit sign-rule evidence cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: The original introduction version and date are not established by the official sources checked.
- Availability: Documented in the current ONLYOFFICE Spreadsheet Editor help; no final working-version endpoint is established.
- Scope: Docs and Desktop Editors release separately. This unversioned help does not establish availability in every older build, mobile client or deployment.
- Checked: October 14, 2026, against the official function reference. Documentation check; not a new native test.
October 19, 2026 evidence clarification: The opposite-sign error statements below report the legacy vendor documentation, not observed runtime behavior. Inspected calculation source differs for negative numbers with positive significance. See the ECMA.CEILING section for the explicit discrepancy and bounded examples.
Quick answer
Round quantities upward in fixed increments without understating required capacity. The documented English-language formula is CEILING(number, significance). All numerical outcomes below are independently derived worksheet expectations, with the official documentation cited for the exact signature and explicit error notes.
What CEILING does — and when to choose it
Round a value up to a specified multiple under the legacy CEILING sign rule. The chosen multiple must be large enough to cover the positive quantity. For positive inputs and increments, take the smallest integer multiple at least as large as the input.
A multiple is not the same thing as a decimal-place count. With 2-unit increments, permitted results are 0, 2, 4, 6, 8 and so on; a request to round to two decimal places is a different calculation. The most important choice is whether your business rule requires an upper boundary, a lower boundary, or the nearest boundary. See the comparison section below before substituting similar function names.
Exact ONLYOFFICE syntax and arguments
=CEILING(number, significance)
| Argument | Required | Type | Default | Meaning |
|---|---|---|---|---|
number |
Yes | Numeric value or cell reference | — | Value to round. |
significance |
Yes | Numeric increment or cell reference | — | Size of each permitted interval. |
Documentation-confirmed status: ONLYOFFICE’s CEILING reference identifies this name and argument order. Both named arguments are required; no default is documented.
Meaningful error/domain caution: The vendor explicitly documents #NUM! when number and significance have different signs. This is a documentation statement: the inspected source differs for negative numbers with positive significance, so it is not a certified runtime rule. If you need an exact error string for unmentioned invalid inputs, test the target editor rather than importing a rule from Microsoft Excel or another spreadsheet.
Build and reproduce a small worksheet
- Open an empty sheet and use row 1 for column labels. Enter each numeric value from the table below into the indicated B, C cells, without currency symbols or units embedded as text.
- Keep the scenario labels in A only; labels are explanatory and are not part of the calculation.
- Enter the formula for row 2 in the indicated formula column, or type each listed row formula verbatim. Use English function names and comma argument separators for this example workbook.
- Compare the displayed output against the independently expected number. If your regional settings use another separator or translated function name, use the settings-aware form rather than assuming these literal commas work in every locale.
- Keep raw measurements separate from formatted outputs: changing displayed decimal places does not necessarily change the numeric value used by rounding.
| Row | A: Scenario | B: Number | C: Increment | D: Formula | Expected value |
|---|---|---|---|---|---|
| 2 | Packaging foam sheets | 4.1 | 2 | =CEILING(B2,C2) |
6 |
| 3 | Stock cases | 8 | 3 | =CEILING(B3,C3) |
9 |
| 4 | Container pallets | 12 | 5 | =CEILING(B4,C4) |
15 |
| 5 | Already aligned | 12 | 4 | =CEILING(B5,C5) |
12 |
| 6 | Ribbon length | 3.2 | 0.5 | =CEILING(B6,C6) |
3.5 |
| 7 | Coil length | 7.7 | 0.25 | =CEILING(B7,C7) |
7.75 |
How to check the arithmetic: For row 2, =CEILING(B2,C2) has an independently expected output of 6. Work from the original number and increment rather than the displayed precision. These rows are examples you can enter yourself; none is claimed to have been executed in the ONLYOFFICE app.
Additional formulas: edge cases and decisions
Enter these into empty cells on a test sheet (the error demonstrations are the official documented sign-mismatch cases only):
| Formula | Independently expected result | Why |
|---|---|---|
=CEILING(4.1,2) |
6 | 2×3 = 6 is the first multiple of 2 not below 4.1. |
=CEILING(12,4) |
12 | Exact multiples remain unchanged. |
=CEILING(12,5) |
15 | The next multiple of 5 is 15. |
=CEILING(8,3) |
9 | 3×3 is the first sufficient multiple. |
=CEILING(3.2,0.5) |
3.5 | Seven half-units cover 3.2. |
=CEILING(7.7,0.25) |
7.75 | 31 quarter-units cover 7.7. |
=CEILING(17,12) |
24 | Two packs of 12 are required. |
=CEILING(19.99,10) |
20 | Twenty is the next 10-unit boundary. |
=CEILING(2.1,1) |
3 | Round to the next whole unit. |
=CEILING(15.1,0.5) |
15.5 | The next half-unit is 15.5. |
=CEILING(5,-2) |
#NUM! |
Vendor-documented sign mismatch (positive value, negative multiple). |
=CEILING(-5,2) |
Vendor documentation: #NUM!; inspected source expectation: -4 |
The documentation and source disagree for a negative value with a positive multiple; native result remains unverified. |
Validation method: For regular numerical cases, the expected outcomes were calculated with Python Decimal arithmetic and matched to the examples without invoking an ONLYOFFICE calculation engine. The CEILING function signature and any explicitly labelled vendor error text were checked against the official page; other platform-specific behaviour remains untested.
Advanced use in real worksheets
Order fulfilment: cases, labels and shipping cartons
Put B12 = 37 units ordered and C12 = 8 units per carton. In D12 enter =CEILING(B12,C12) to calculate an expected 40 units of carton capacity. In E12 enter =D12/C12 for an expected 5 cartons, rather than mistaking 40 for the carton count. A simpler count approach uses =CEILING(B12/C12,1) and expects 5.
For purchase quantities, =CEILING(12.01,0.5) expects 12.5 meters rather than 12.01 meters. The safety objective is to avoid under-ordering a discrete purchase unit. This is not a general-purpose nearest-value rounding formula.
Negative numbers and precision
A negative value with a positive significance is described as #NUM! in the legacy CEILING help, but the inspected source accepts this sign combination. Treat the documentation and source as conflicting evidence until the target build is tested. Do not silently assume the newer CEILING.MATH negative-direction rules apply to this function. Two negative arguments are not described in sufficient detail for this guide to certify a specific vendor result without a native calculation. For currency-like decimals, binary floating point may influence near-boundary comparisons; inspect input precision and apply business rules explicitly.
Common problems and troubleshooting
| Symptom or question | Likely issue | Practical check or correction |
|---|---|---|
#NUM! with −5 and 2 |
The vendor documents this error, but the inspected source instead implies -4. | Test the target build and retain this discrepancy; do not assume either source describes every installed version. |
| Missing-significance error | This legacy signature has two required arguments. | Supply a numeric significance argument. |
| Result larger than expected | CEILING aims for the next multiple, not the nearest one. | Use MROUND when nearest multiple is intended. |
| Decimal result slightly surprising | A computed cell may contain additional fractional precision. | Inspect source precision and exact formula; do not assume displayed rounding changed its numeric value. |
| Zero significance / text input | The vendor page does not state a complete error matrix for these cases. | Test them natively before promising an error string. |
If a workbook shows a general formula error, first confirm that the number of arguments, function spelling, argument separator and value types match the target editor’s settings. The short vendor reference does not justify a complete type-coercion/error-code matrix; do not present guessed #VALUE!/#DIV/0! results as ONLYOFFICE-tested facts.
Compare closely named functions without conflating them
Unlike CEILING.MATH, legacy CEILING requires a significance argument. Its documentation reports a mismatched-sign error, but the inspected source does not apply that rule to negative numbers with positive significance. The official text does not spell out every negative-input or zero-significance outcome, so those cases are flagged for actual editor tests.
Related vendor references (these are separate documented entries, not guaranteed cross-version aliases):
- CEILING.MATH official ONLYOFFICE reference — a separate documented function; not an alias for CEILING.
- CEILING.PRECISE official ONLYOFFICE reference — a separate documented function; not an alias for CEILING.
- FLOOR official ONLYOFFICE reference — a separate documented function; not an alias for CEILING.
- MROUND official ONLYOFFICE reference — a separate documented function; not an alias for CEILING.
Desktop versus web, releases, languages and compatibility
- Docs/web documentation: The unversioned English ONLYOFFICE CEILING reference and current Spreadsheet Editor function catalogue list the formula. This establishes a documented function, not a successful calculation in any specific hosted Docs installation.
- ONLYOFFICE Docs release context: The Docs changelog lists version 10.0.0 with a release date of October 10, 2026. It does not, by itself, establish the first build that supported this particular rounding function, or prove that a given server has upgraded.
- ONLYOFFICE Desktop: Desktop Editors has a separate public release history. The available entries do not establish a first-support version for this function. No desktop binary was installed or used; treat Desktop support in historical builds as unverified.
- Regional formula settings: ONLYOFFICE Spreadsheet Editor Advanced Settings documents selectable formula language, region and number separators. The English/comma-based formulas above are the teaching notation, not a locale-independent guarantee. Function names and argument delimiters may require adaptation; there was no localized runtime test.
- Cross-program workbooks: A matching function name in Excel, LibreOffice, Google Sheets or an older OOXML workbook is not evidence that a particular ONLYOFFICE version executes it identically. Especially test negative-value rules, ties, zero significance and existing workbooks in the intended editor/edition.
Related learning guides
Official ONLYOFFICE references and evidence status
- CEILING function reference — syntax, purpose and explicit notes — checked 2026-10-13 UTC.
- Spreadsheet Editor: Insert functions — catalogue and function-entry procedure — checked 2026-10-13 UTC.
- Spreadsheet Editor: Advanced Settings — formula language and regional formats — checked 2026-10-13 UTC.
- ONLYOFFICE Docs changelog — release context — checked 2026-10-13 UTC.
- ONLYOFFICE DesktopEditors releases — separate platform history — checked 2026-10-13 UTC.
Verification limitations: Direct numerical outputs were independently calculated using an explicit mathematical model. Native Desktop/web execution, invalid-input runtime behavior, historical compatibility and localized formula parsing were not tested.
ECMA.CEILING: named compatibility variant
The official ECMA.CEILING reference documents this exact signature:
ECMA.CEILING(x, significance)
Both arguments are required. x is the number to round and significance is the multiple. Do not transfer the optional-argument conventions of CEILING.MATH to this signature.
Worked positive-significance controls
On a new EcmaCeilingControls worksheet, enter these formulas in separate cells. The numeric expectations are independently calculated and consistent with the inspected calculation for these particular inputs; they were not run in a native ONLYOFFICE editor.
| Formula | Expected result | Explanation |
|---|---|---|
=ECMA.CEILING(13,5) |
15 | Three increments of 5 cover 13. |
=ECMA.CEILING(-13,5) |
-10 | The next greater multiple of 5 is -10, toward zero. |
=ECMA.CEILING(10,5) |
10 | This positive input is already a multiple. |
=ECMA.CEILING(4.1,2) |
6 | The next greater 2-unit boundary is 6. |
=ECMA.CEILING(-4.1,2) |
-4 | With this positive significance, -4 exceeds -4.1. |
For the negative controls, “up” means toward a greater numerical value, rather than greater magnitude. These examples use positive significance only; they do not establish every sign combination, exact negative multiple, zero significance or near-boundary floating-point case.
Reconcile the legacy CEILING documentation with source evidence
The pinned ECMA.CEILING definition inherits CEILING with no separate calculation override. The inherited CEILING helper rejects a positive number with negative significance, but does not reject a negative number merely because significance is positive. That conflicts with the broader opposite-sign error statement in the legacy CEILING documentation quoted earlier. Consequently the earlier CEILING(-5,2) entry is a vendor-documentation claim, not a verified runtime result or a rule to apply automatically to ECMA.CEILING.
Retain both spellings when auditing imported formulas. Shared implementation at this revision supports grouped coverage, not a universal substitution rule. Compare results in the exact target editor before replacing either name, especially for negative inputs or older files. CEILING.MATH and CEILING.PRECISE remain separately documented functions.
Availability and evidence limits for ECMA.CEILING
The name is documented in current official help, checked October 19, 2026. The first supported version/date and final supported-version endpoint remain unknown. Docs, Desktop Editors, mobile clients and older builds must not be treated as one verified release. The cited source is pinned to a particular revision; no native execution, screenshot, localized parsing or import/export test is claimed for these controls. Missing arguments and other invalid-input error strings are not certified here.