WorkbookLogic
FunctionLogicalbeginnerORIF

OR Function

By WorkbookLogic

The Excel OR function evaluates multiple logical tests and returns TRUE when at least one test is true. It returns FALSE only when every supplied condition is false.

ExcelLast reviewed Sep 11, 2026
or-function-v1.0.0.xlsx
Excel OR Function
Change the cream values to see how OR returns TRUE when at least one logical test is true.
Source scenarios, editableOR examples
ScenarioInput AInput BCriterion / UpperExampleFormula syntaxResult
Either minimum met806070Either minimum met=OR(B12>=D12,C12>=D12)TRUE
Neither minimum met506070Neither minimum met=OR(B13>=D13,C13>=D13)FALSE
Value outside range12050100Value outside range=OR(B14<C14,B14>D14)TRUE
Accepted statusPendingAccepted status=OR(B15="Approved",B15="Pending")TRUE
Missing or nonpositive50Missing or nonpositive=OR(B16="",C16<=D16)TRUE
How OR combines tests
OR evaluates every logical argument and returns one Boolean result.
The result is TRUE when at least one test is TRUE; it is FALSE only when all tests fail.
Use OR for acceptable alternatives, and AND when every requirement is mandatory.
Reliability checks
One-pass result matches the two visible minimum testsOK
None-pass result matches the two visible minimum testsOK

Overview

The Excel OR function combines several logical tests into one result. It returns TRUE when at least one supplied test passes and returns FALSE only when they all fail.

Quick reference

Syntax: =OR(logical1, [logical2], ...)

Returns: TRUE when any logical argument is true; otherwise FALSE. (Boolean)

Arguments:

  • logical1 (required) — The first condition or logical value to evaluate.
  • logical2 (optional) — An additional condition or logical value; more optional arguments may follow.

The bracketed arguments after logical1 are optional. Add further logical tests when any one may satisfy the rule; each test should evaluate to TRUE or FALSE.

Common uses

  • Accept any one of several qualifying conditions or statuses.
  • Flag values below a lower limit or above an upper limit.
  • Trigger an exception when any required field or validity check fails.
  • Combine blank, text, and numeric tests into one Boolean result.

Calculations

Each argument is evaluated as a separate logical test. If any test resolves to TRUE, the combined result is TRUE. The formula returns FALSE only when every test is false.

This makes OR useful for acceptable alternatives and exception rules. It can check whether either threshold is met, whether a value falls outside an interval, whether a status matches one of several allowed values, or whether any failure condition is present.

OR returns a Boolean value by itself. Wrap it in IF when the worksheet needs a custom label, number, or calculation. An error in any evaluated argument propagates.

Function behavior

Situation

Behavior

Any test is TRUE

Returns TRUE.

Every test is FALSE

Returns FALSE.

Outside-range rule

Combine below-lower and above-upper tests.

Alternative text values

Compare the same cell with each accepted value.

Blank test

="" matches a true blank and formula-generated empty text.

Error in an argument

The error propagates to the result.

Common errors

Using OR when every condition is mandatory

What happens:
The result becomes true after only one test passes, making the rule too permissive.

Better approach:
Use AND when all requirements must pass together.

Using AND for an outside-range test

What happens:
A value cannot normally be both below the lower boundary and above the upper boundary, so the test never succeeds.

Better approach:
Use OR(value<lower,value>upper) because either boundary breach should trigger the result.

Expecting a custom label from OR

What happens:
The formula returns only TRUE or FALSE.

Better approach:
Wrap OR in IF when a label, number, or calculation is required.

Example

Example 1 — Allow Either Minimum to Pass

=OR(B12>=D12,C12>=D12)

The values are 80 and 60, and the minimum is 70. The first test passes, so the result is TRUE even though the second fails.

Example 2 — Show When Every Alternative Fails

=OR(B13>=D13,C13>=D13)

Both 50 and 60 are below 70. With no true argument, the formula returns FALSE.

Example 3 — Flag a Value Outside a Range

=OR(B14<C14,B14>D14)

The value 120 is above the upper limit of 100, so one test is true and the result is TRUE.

Example workbook

The workbook contains OR Example and Notes tabs. Five scenarios cover one successful alternative, no successful alternatives, an outside-range test, accepted text statuses, and a blank-or-nonpositive rule. Two checks reconcile the first true and false results.

Key takeaway

Use OR for acceptable alternatives or exception triggers: one true condition makes the entire result true.