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: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =IF(B2>=60,"Pass","Review") returns Pass for Alex’s score of 82 in the complete worksheet below. IF selects an output from the result of a condition; it does not calculate a count of passing records.
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 and independent logical checks; no native test of these cases.
Syntax and explicit branch values
=IF(logical_test, value_if_true, [value_if_false])
The official reference shows the condition and true result as required, with the false result optional. Its short entry does not define the omitted-false output or every distinction between omitted, empty and explicitly blank arguments. These examples supply both branches.
Put literal output text in double quotes. Square brackets indicate optional syntax and are not typed into a formula. Examples use English names and comma separators; follow the separator accepted by your configured editor.
Complete score worksheet
Create ScoreRules, put Name and Score in A1:B1, and enter the original four records:
| Row | A: Name | B: Score |
|---|---|---|
| 2 | Alex | 82 |
| 3 | Bea | 47 |
| 4 | Cara | 90 |
| 5 | Drew | 63 |
Put Decision in C1. Enter =IF(B2>=60,"Pass","Review") in C2 and fill through C5. The expected results are Pass,Review,Pass,Pass.
Alex’s 82 meets the threshold and Bea’s 47 does not. The remaining scores 90 and 63 also meet it. Keep B numeric; an imported string that looks like a score needs separate validation.
For a visible test column, put Condition in E1, enter =B2>=60 in E2 and fill through E5. Expect TRUE,FALSE,TRUE,TRUE. C converts those logical results into labels; E leaves them as logical values.
Add a third tier without overwriting the first rule
Put Tier in D1. Enter this formula in D2 and fill through D5:
=IF(B2>=80,"Distinction",IF(B2>=60,"Pass","Review"))
Expected results are Distinction,Review,Distinction,Pass. The higher threshold is tested first. A score of 82 qualifies for both thresholds, but the intended classification is Distinction rather than the lower Pass tier.
This is a rule-order explanation, not a guarantee about evaluation of unused expressions or error-producing branches. Keep such runtime questions separate from this complete numeric fixture.
Boundary controls and an editable threshold
Create BoundaryScores. Enter 59,60,79,80 in A2:A5, with Score in A1. In B2 enter =IF(A2>=60,"Pass","Review"); in C2 enter =IF(A2>=80,"Distinction",IF(A2>=60,"Pass","Review")). Fill both through row 5.
| Score | Expected B | Expected C |
|---|---|---|
| 59 | Review | Review |
| 60 | Pass | Pass |
| 79 | Pass | Pass |
| 80 | Pass | Distinction |
Return to ScoreRules. Put Threshold in G1 and 60 in G2. In H2 enter =IF(B2>=$G$2,"Pass","Review") and fill through H5. The targets initially match C2:C5. Change G2 to 85; H2:H5 becomes Review,Review,Pass,Review. Restore 60 after checking. The $ anchors keep the threshold cell fixed while the score reference changes.
Reproduce the official text example
On a separate VendorIF sheet, enter 12 in A1 and =IF(A1<100,0,1) in C1. Expect 0, because the condition is true. Change A1 to 112; expect 1. Those are the two cases explicitly described in the official page. A true condition can return zero; output value and condition truth are different concepts.
Troubleshooting and related functions
Check the condition by itself, the comparison operator and the row references. >=60 includes 60, while >60 would exclude it. A label such as Review is text; it is not a Boolean FALSE stored in the output cell.
Missing scores, unexpected types, exact error propagation and omitted branch behavior are outside these examples. A formatting change alone does not establish a successful numeric conversion. When migrating a workbook, check actual values and separators rather than assuming identical behavior from a shared function name.