OR Function in ONLYOFFICE Spreadsheet Editor: Syntax and Worked Examples
Test whether any condition is TRUE, with order-exception examples and troubleshooting.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: OR returns TRUE when at least one supplied logical condition is true. It is inclusive: two true conditions still return TRUE. In the original order worksheet, a Hold status or zero units flags A102 and A104 for review.
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 documented limit
=OR(logical1, [logical2], ...)
The official reference allows up to 255 logical values. The first is required and later ones are optional. All-false arguments return FALSE; any true argument returns TRUE.
Use explicit conditions for text or numeric fields. Brackets show optional syntax and are not typed into formulas. These English examples use commas. The short entry does not fully define conversions for every text, blank or error value inside a reference.
Original order worksheet
Create OrderExceptions with Order, Spend, Units, Status and Channel in A1:E1. Enter the five records, keeping Spend and Units numeric:
| Row | A: Order | B: Spend | C: Units | D: Status | E: Channel |
|---|---|---|---|---|---|
| 2 | A101 | 150 | 3 | Ready | Web |
| 3 | A102 | 80 | 0 | Pending | Store |
| 4 | A103 | 220 | 5 | Ready | Store |
| 5 | A104 | 160 | 2 | Hold | Web |
| 6 | A105 | 130 | 1 | Ready | Web |
Put Needs review in G1. Enter =OR(D2="Hold",C2=0) in G2 and fill through G6.
| Row | Hold status | Zero units | Expected G |
|---|---|---|---|
| 2 | FALSE | FALSE | FALSE |
| 3 | FALSE | TRUE | TRUE |
| 4 | FALSE | FALSE | FALSE |
| 5 | TRUE | FALSE | TRUE |
| 6 | FALSE | FALSE | FALSE |
A102 has zero units and A104 is on Hold. Each needs only one matching reason. Replacing OR with AND would require both problems in the same record.
Labels and nested eligibility rules
Put Action in H1. Enter =IF(OR(D2="Hold",C2=0),"Review","Proceed") in H2 and fill through H6. Expect Proceed,Review,Proceed,Review,Proceed.
For a separate policy, put Spend and channel in I1. Enter this in I2 and fill to I6:
=AND(B2>=100,OR(E2="Web",E2="Store"))
Expected results are TRUE,FALSE,TRUE,TRUE,TRUE. The outer AND requires the spend threshold. The inner OR accepts either listed channel. These are distinct levels of the rule; adding a channel should not accidentally remove the mandatory spend test.
Both reasons can occur together
Create CombinedExceptions. Put Status and Units in A1:B1, then enter these rows:
| Row | Status | Units | Expected OR |
|---|---|---|---|
| 2 | Ready | 3 | FALSE |
| 3 | Ready | 0 | TRUE |
| 4 | Hold | 3 | TRUE |
| 5 | Hold | 0 | TRUE |
Put =OR(A2="Hold",B2=0) in C2 and fill through C5. Row 5 has both reasons and still returns TRUE. OR does not tell you whether one reason or two caused the flag; keep the individual tests visible when that distinction matters.
In D2 enter =AND(A2="Hold",B2=0) and fill to D5. Expect FALSE,FALSE,FALSE,TRUE. This separate column identifies the overlap without changing the original OR rule.
Why OR cannot form a bounded numeric interval
Create NumericBand with 99,100,150,200,201 in A2:A6. Put =OR(A2>=100,A2<=200) in B2 and fill to B6. Every result is TRUE. In fact, every ordinary finite real number satisfies at least one of those inequalities.
Put =AND(A2>=100,A2<=200) in C2 and fill through C6. Expect FALSE,TRUE,TRUE,TRUE,FALSE. AND requires both bounds simultaneously. This control makes the difference visible at both endpoints and on either side of the interval.
Official example and troubleshooting
On a separate VendorOR sheet, enter 12 in A1 and =OR(A1<10,34<10,50<10) in C1. Expect FALSE. Change A1 to 2; expect TRUE. The official page describes those exact inputs and conditions.
Use =OR(FALSE,FALSE) and =OR(FALSE,TRUE) as simple logical controls; the expected outputs are FALSE and TRUE. Literal Boolean values are different from text labels such as "FALSE".
OR does not count qualifying records, infer missing-data rules or establish safe short-circuit evaluation. Exact error propagation and mixed-type coercion remain untested here. Check the individual comparisons, quoted labels and filled row references before generalizing a result to imported data.