ODD Function in ONLYOFFICE: Syntax and Examples
Round quantities to odd whole numbers and distinguish rounding from odd/even Boolean tests.
Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in ONLYOFFICE Spreadsheet Editor. How formula examples are checked
Quick answer
Use =ODD(number). This is the exact English argument order in ONLYOFFICE’s official ODD reference. The guide gives reproducible input data and expected outputs independently checked with Python decimal arithmetic; it does not claim any native ONLYOFFICE execution.
Purpose: when ODD is useful
ODD takes a number and returns an odd whole number under the documented rounding objective. It can be useful for design constraints requiring an odd number of positions, such as a centred column layout with a single middle position. The official ONLYOFFICE ODD reference names the function and its single numeric argument. ODD is a rounding operation, not a check that the input is already odd; ISODD serves that latter purpose.
Exact function syntax and argument contract
=ODD(number)
| Argument | Requirement/type | Meaning | Example reference |
|---|---|---|---|
number |
Required numeric value | The value to move to an odd integer. | A2 |
The official argument table lists 1 required numeric argument, with no optional parameters or defaults stated. Placeholder names in the syntax are not values; replace them with appropriate numeric literals, references or expressions. A referenced cell containing number-formatted text should not be treated as safely numeric without checking the installed build.
The ONLYOFFICE article does not explicitly explain negative numbers or zero in running text. Microsoft Excel documents rounding away from zero; the signed fixtures here follow that model as expected cross-software results requiring native ONLYOFFICE verification. We intentionally exclude ODD(0) from asserted results until target-build behaviour is confirmed.
Product version, editor platform and formula language
this guide uses the unversioned English ONLYOFFICE Docs Spreadsheet Editor function catalogue and the function-specific article, each accessed 2026-10-11 UTC. The article documents the function name and English syntax, but does not name the first supported release. The catalogue documents available functions for Docs; it is not a tested compatibility matrix for all server builds, Desktop Editors, mobile apps, or embedded integrations. No actual Docs web or Desktop installation was available to execute the examples. A product-release banner is not evidence that this function behaves identically in every edition or build.
For the English formulas in this guide, type =, then the function name and parentheses; the official insertion instructions show that multiple arguments use commas. The Advanced Settings reference documents a Formula Language selector and regional configuration. Localized function names, decimal punctuation and argument separators may differ; verify these on the actual user installation. Data below use a period as decimal separator. A displayed number format is not proof of the stored numeric value.
Reproducible practice sheet
Enter numeric layout or quantity requests in A2:A11. Formula column B will compute expected odd-integer targets. For negative inputs the expected value follows the documented Excel rule, and is not a measured ONLYOFFICE output.
| Row | A: number | B: expected result |
|---|---|---|
| 2 | 1 |
1 |
| 3 | 2 |
3 |
| 4 | 2.1 |
3 |
| 5 | 4.2 |
5 |
| 6 | -1 |
-1 |
| 7 | -2 |
-3 |
| 8 | -3.1 |
-5 |
| 9 | 7 |
7 |
| 10 | -7.01 |
-9 |
| 11 | 0.1 |
1 |
Enter the formula
=ODD(A2)
- Open a new worksheet and enter the table numbers as numeric cells, not quoted strings. For signed numbers, use the minus sign before the digits.
- Select the result cell next to the first row. Enter the formula shown below, using the English punctuation.
- Fill down through the example range. For the QUOTIENT zero-divisor case, enter the separate IF guard formula instead of an unguarded division.
- Compare outputs to the independently calculated expected results in the table and companion CSV. The values here have not been observed running in ONLYOFFICE.
- Change a copy of one input at a time, and document the program version and actual result for any discrepancy. Do not overwrite the original test cells.
The table shows expected results, not screenshots or native observations. The companion data/math-integer-fixtures.csv preserves the corresponding explicit formulas and inputs. Zero, negatives and decimal inputs are included to make differences visible.
Advanced worked examples and expected outputs
Count additional positions needed
=ODD(A3)-A3
Expected output: 1. A3 is 2; the expected odd target is 3, requiring one added position. This is independently reasoned, not a native ONLYOFFICE observation.
Check an odd-number design threshold
=IF(ODD(A5)>=5,"ROUND UP","KEEP")
Expected output: ROUND UP. A5 contains 4.2; the expected odd whole target is 5. This is independently reasoned, not a native ONLYOFFICE observation.
Separate magnitude from signed direction
=ODD(ABS(A8))
Expected output: 5. A8 is −3.1. ABS yields 3.1 and expected ODD rounding moves the magnitude to 5. This is independently reasoned, not a native ONLYOFFICE observation.
Confirm whether the output is odd
=ISODD(ODD(A3))
Expected output: TRUE. For numeric 2, expected ODD(A3) is 3, and ISODD checks that the result is an odd integer. This is independently reasoned, not a native ONLYOFFICE observation.
Why an odd number can matter in a layout
Suppose a shelving display must have a middle lane. A4 is 2.1 requested lanes; the expected ODD(A4) count is 3, allowing one centre lane. This is a counting illustration, not evidence that 2.1 lanes are physically meaningful. Validate the business input before using a rounding function.
When to use a different function
If you need the number of whole items rather than an odd total, QUOTIENT or TRUNC addresses a different objective. If you only need a parity flag for an existing integer, use ISODD. If your capacity is even, use EVEN. Do not assume a similarly named function across spreadsheet programs guarantees matching zero and negative edge cases.
Frequent mistakes, edge cases and limits
- Using
ODDwhen you only want TRUE or FALSE:=ISODD(A3)checks whether input 2 is odd;=ODD(A3)predicts the rounded value 3. - Confusing odd-integer rounding with the nearest integer: 4.2 predicts 5, not 4.
- Assuming signed movement always increases on the number line: −3.1 predicts −5 under Excel’s away-from-zero rule; target ONLYOFFICE behaviour remains untested.
- Assuming zero returns a particular odd integer without testing: the ONEOFFICE function page does not explicitly settle this edge case.
- Making stock allocation decisions from odd counts without confirming physical pack constraints and nonnegative input validity.
- Assuming local decimal separators or nonnumeric string conversion from English examples without testing the target configuration.
Troubleshooting and release-sensitive checks
- Formula displays literally rather than calculating. Check that it starts with
=and that the result cell is configured to accept formulas rather than text. Insert the function from the Formula tab if unsure. - Function name is unknown or arguments are rejected. Search the installed Insert Function dialog for the function; confirm the exact edition/build, formula language, regional separator and copied punctuation.
- Result differs from an example. Compare the raw input cells, numeric types and signs. Check whether a value merely looks rounded due to display formatting. Compare against the expected-results CSV rather than an unrelated screenshot.
- Excel output differs from ONLYOFFICE. Use the same literal inputs, cell number formatting and locale in both programs, compare actual build versions and save a minimal test case. Do not call it a vendor defect without reproducing it.
- Need an audit trail. Save the exact input workbook, the function formula, output cells, screenshots where permitted, operating system, product edition/build and regional settings. The original inputs should remain unchanged.
Cross-compatibility: Excel, web Docs and Desktop
Excel: Microsoft defines ODD with rounding away from zero and preserves existing odd integers. The ONLYOFFICE reference documents the odd-rounding purpose and signature; because it lacks explicit detailed signed examples, negative rows here are independently calculated Excel-compatible hypotheses, not proved equivalence across Desktop, Docs web and Excel. Check at least A7 and A8 in both programs before depending on import interoperability.
- Current ONLYOFFICE Docs English help: documents name, purpose and argument signature. That is documentation checking, not native build testing.
- ONLYOFFICE Desktop Editors: same-brand product, but the current Docs function article does not document a first supported Desktop version. Desktop testing remains pending.
- Mobile and integrations: not established by this documentation alone. Test relevant embedded implementations before describing them as compatible.
- Other spreadsheet engines: a shared function name is not a guarantee of matching coercion, error types, sign rules or locale treatment.
Microsoft’s official Excel ODD function article was checked as cross-software comparison evidence only, not as proof that ONLYOFFICE behaves identically for edge cases.
Related references and checked links
These vendor references were checked as documentation links, not as live internal Spreadsheet-Tutorials.com pages:
Official reference and verification
- ONLYOFFICE Spreadsheet Editor — function documentation
- function catalogue
- Advanced Settings reference
- ISODD — official ONLYOFFICE function reference
- EVEN — official ONLYOFFICE function reference
- ABS — official ONLYOFFICE function reference
- IF — official ONLYOFFICE function reference
Verification status: Official documentation checked; example outcomes were independently reasoned or arithmetically checked where applicable. Not executed in ONLYOFFICE Spreadsheet Editor.
- No genuine ONLYOFFICE Spreadsheet Editor screenshots are included; this guide does not use mock application images.