OR Function (OpenOffice Calc)
Learn the OR function in Apache OpenOffice Calc: Returns TRUE if an argument is TRUE.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
- Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
OR returns TRUE when at least one participating condition is true. It expresses an alternative-route rule: either condition, or both, can satisfy it. It is inclusive OR, so two true inputs still produce TRUE rather than FALSE.
Syntax and arguments
=OR(logical_1; logical_2; ...)
At least one argument is required. The retained function resources describe 1 to 30 arguments and permit references or ranges. Numeric zero is false; every nonzero numeric value is true. To require exactly one of two conditions, use XOR; do not reinterpret OR as an exclusive choice. Examples use English function names and semicolon argument separators.
Reproducible examples
| Formula | Expected result |
|---|---|
=OR(TRUE();FALSE()) |
TRUE |
=OR(FALSE();FALSE()) |
FALSE |
=OR(TRUE();TRUE()) |
TRUE |
=OR(0;0;-2) |
TRUE |
=OR(0) |
FALSE |
=OR(5<3;8>10) |
FALSE |
The first formula preserves the original example and result. Its historical comparable LibreOffice 25.2 check was not an OpenOffice test. New results are independent reference expectations checked against the pinned source, not fresh native worksheet captures.
Practical worksheet: flag either of two operational limits
Use Temperature in A1 and Pressure in B1. Enter rows (25;80), (35;80), (25;110) and (35;110) in A2:B5. In C2 enter =OR(A2>30;B2>100) and fill down. Expected results are FALSE, TRUE, TRUE and TRUE. This worksheet illustrates an arbitrary reporting rule, not an engineering safety specification.
In D2 enter =IF(C2;"Inspect";"Within chosen limits") and fill down. Only the first row receives Within chosen limits. A row meeting both conditions is still flagged once; OR does not count two events or measure their severity.
Advanced applications
Find values outside a closed interval. =OR(A2<10;A2>20) returns TRUE for 9 and 21, but FALSE for 10, 15 and 20. Using AND instead would require a value to be below 10 and above 20 simultaneously, which is impossible for an ordinary number.
Build a readable fallback. Put logical flags in E2 and F2. =OR(E2;F2) accepts either. Keep the individual flags visible so a TRUE result can be traced to its cause. For ordinary valid flags, NOT(OR(E2;F2)) equals AND(NOT(E2);NOT(F2)): neither alternative was met.
Understand ignored cells. With 0 in A2, the text note in A3 and an empty A4, OR(A2:A4) gives FALSE. Add -2 in A5 and OR(A2:A5) gives TRUE. The sign and magnitude do not affect truth once the value is nonzero. The text and empty cell do not supply an alternative that has passed.
Errors, edge cases and troubleshooting
The inspected callback rejects direct string arguments through its no-value error path. Text and empty cells encountered through ordinary references/ranges do not contribute numeric truth values. If no usable value remains, the callback returns a no-value error rather than inventing TRUE or FALSE. Thus an all-text/empty range is not a reliable empty-set logical identity.
An error among the participating inputs is not made safe by another condition that already determines the logical answer. Do not rely on OR as a short-circuit guard for division or other unsafe expressions. Check the risky calculation separately or use a deliberately tested conditional structure.
A range result is one aggregate logical value, not a row-by-row result for every cell. For record-level rules, write explicit comparisons on one row and fill down. The source has separate reference, range and matrix paths; these ordinary examples do not certify all array, text-coercion or error-display behavior. Hidden missing values can be ignored rather than fail the rule, so validate required input fields independently.
Related functions
Documentation and verification
See the Apache OpenOffice OR reference, 4.1.16 function resources and versioned interpreter. The official source snapshots were retrieved October 13, 2026 and re-read for this guide; their dates have not been relabeled as fresh retrievals. Boolean truth tables, scalar type models and worksheet calculations are independently checked. No new native/headless application or GUI execution is claimed. Original introduction and final functioning version remain unestablished, separate from documented 4.1.16 support.