Contact

OR Function (Gnumeric)

Logical Beginner Gnumeric

Learn the OR function in Gnumeric: Returns TRUE if an argument is TRUE.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

The OR function in Gnumeric is used for this task: Returns TRUE if an argument is TRUE. Check whether at least one condition is true.

This guide explains how to read the formula, reproduce a concrete example, interpret its result and recognize common input mistakes.

Availability and version history

  • Introduced: Documented by 1.12.62; original introduction not established.
  • Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
  • Scope: Desktop; the fn-logical function module must be included and enabled.
  • Checked: Bounded native Gnumeric 1.12.57 cases on October 17, 2026; retained 1.12.62 registration/source remains a separate scope. First historical execution and last functioning release are not established.

Syntax and arguments

=OR(b0,[b1],...)

OR returns TRUE if at least one usable logical argument is true; it returns FALSE when all usable logical arguments are false. Numeric zero is false and nonzero numbers, including negative numbers, are true. Gnumeric ignores strings and empty values for this calculation. If no usable logical or numeric value is supplied, the documented result is #VALUE!.

OR is strict in Gnumeric: an error in an argument can propagate even if another argument is already TRUE. Do not treat it as a short-circuit error guard. Arguments can be logical expressions or references; make the intended conditions explicit instead of assuming text labels are logical values.

Worked example

=OR(TRUE(),FALSE())

Expected result: TRUE.

Why it works: Check whether at least one condition is true.

Truth-table and error fixtures

Formula Expected result
=OR(TRUE(),FALSE()) TRUE
=OR(FALSE,FALSE) FALSE
=OR(0,-2) TRUE
=OR(TRUE,1/0) #DIV/0!
=OR("text") #VALUE!

The original TRUE/FALSE example is preserved. The negative number -2 is nonzero, so it is treated as true. The error example is especially important: knowing that one condition is true does not make the remaining error disappear. Text-only input has no usable logical value and is not equivalent to FALSE.

For a synthetic review flag, put a quantity in A2 and an age in days in B2. =OR(A2<0,B2>30) flags either a negative quantity or an age over 30 days. With A2 = 5 and B2 = 31 the result is TRUE; with A2 = 5 and B2 = 30 it is FALSE. Check the exact boundary rather than describing the rule loosely as “old records.”

Advanced use: compose conditions without hiding errors

OR represents inclusive “either”: it is also TRUE when both conditions are true. If a task requires exactly one condition, that is a different logical rule. Document whether multiple simultaneous triggers are acceptable.

For operations that can fail, use an appropriate conditional structure to validate prerequisites before performing the operation. Do not assume OR(safe_condition,risky_calculation) avoids the risky calculation. Keeping helper columns for separate conditions can make the first error and the triggering rule easier to locate.

When a range contains text labels such as Yes and No, those are strings rather than Boolean values. Convert them deliberately according to a documented mapping instead of expecting OR to interpret their meaning.

Common problems and practical checks

  • A nonzero number is true even if negative. OR does not ask whether it is positive.
  • Text and empty cells are ignored; a range with no usable logical or numeric values produces #VALUE! rather than FALSE.
  • Errors propagate under the strict evaluation contract, so TRUE is not an error-suppression switch.
  • OR returns one logical summary, not a count of true conditions or a list of matching rows.
  • Use AND when all conditions must hold and verify any combined rule with a truth table.
  • NEWS records a 1.7.0 fix making AND/OR/XOR ignore strings as documented, plus earlier OR fixes in 0.27. These are maintenance milestones rather than first-release proof.

Documentation and verification

  • Gnumeric official function catalog
  • A historical comparable LibreOffice Calc 25.2 test was not Gnumeric verification. The present listed native fixture was recalculated using Gnumeric ssconvert 1.12.57 under C.UTF-8. Unexecuted source branches are not runtime guarantees; no GUI or screenshot is claimed.
  • Official function help and implementation. Statistical/mathematical source1.12.62 was retained October13–14; built-in/logical1.12.57 source was freshly retrieved October17.