IF Function in ONLYOFFICE Spreadsheet Editor: Examples and Syntax
IF in ONLYOFFICE Spreadsheet Editor: choose an output based on a TRUE/FALSE condition with examples, advanced use, errors, troubleshooting and official sources.
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
IF function in ONLYOFFICE Spreadsheet Editor
Quick answer: Use IF to choose an output based on a TRUE/FALSE condition. The steps below are original teaching examples derived from official syntax and independently checked arithmetic. No screenshot or result is represented as a native editor execution.
Exact syntax and argument definitions
=IF(logical_test, value_if_true, [value_if_false])
| Argument | Required? | Meaning |
|---|---|---|
logical_test |
Required | Condition to evaluate. |
value_if_true |
Required | Output if the condition is TRUE. |
value_if_false |
Optional | Output if FALSE. |
Square brackets are documentation markers for optional parameters, not characters to type in a formula. Formula names and comma-separated arguments here follow ONLYOFFICE’s official function-entry guide. Locale settings can affect punctuation and displayed formats.
Reproducible worked dataset
Create a new sheet with these small source records:
| Row | A: Name | B: Score |
|---|---|---|
| 2 | Alex | 82 |
| 3 | Bea | 47 |
| 4 | Cara | 90 |
| 5 | Drew | 63 |
If a cell is marked leave empty, leave it truly empty rather than entering the words in the table. Put the formula in a free cell away from the source data.
=IF(B2>=60,"Pass","Review")
Expected result: Pass. Alex has 82, which meets the threshold of 60. This is an arithmetic/logical prediction on the supplied sample, not a claim of native ONLYOFFICE testing.
Second result for comparison
=IF(B3>=60,"Pass","Review")
Expected result: Review. Bea scores 47, below 60. Comparing these two results helps identify incorrect ranges and mismatched conditions.
Advanced practical example
Add a Distinction tier for scores at least 80.
=IF(B2>=80,"Distinction",IF(B2>=60,"Pass","Review"))
Expected result: Distinction. The outer test is TRUE because 82 is at least 80. Change just the source value described above to reproduce the variation.
Common mistakes, edge cases and limitations
Quotation marks are necessary for literal output text. Test high thresholds before low thresholds in nested formulas; missing or text-formatted scores need deliberate handling.
Unrecognized formula names, missing arguments, incorrect parentheses and incompatible separators may cause an error. When an output is surprising, test the small example first, check whether input values are genuine numbers, then inspect the formula’s range endpoints. Do not guess a specific error label when it has not been produced by a native test.
Troubleshooting steps
Enter =B2>=60 by itself to verify a TRUE result, then add IF. Copy it down and expect Pass, Review, Pass, Pass on rows 2-5. If formulas are displayed as text, ensure the destination cell is treated as a formula and starts with an equals sign. If copying a formula, decide which references should remain fixed and apply $ anchors as needed.
ONLYOFFICE version and edition notes
The current official function inventory lists this function. The checked changelog does not give its first supported build. Verify the installed edition rather than implying unsupported old builds work.
The official changelog was reviewed on 2026-10-11 UTC. No unsupported introduction date or minimum edition is invented.
Cross-software compatibility
IF is common to Excel, Google Sheets, and LibreOffice Calc, with potential locale and array-expression differences. Microsoft also provides a version-aware function catalogue. Consult the eight-software comparison for navigation, but verify formula semantics in each destination app before copying a workbook.
Related guides
Official reference and verification
- ONLYOFFICE Spreadsheet Editor — function documentation
- ONLYOFFICE’s official function-entry guide
- official changelog
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.