OR Function

Returns TRUE when at least one condition is TRUE.

Category

Logical

Available in

All versions, Microsoft 365

Returns

TRUE or FALSE

Taught hands-on in Level 2: Essential Formulas & Everyday Logic - Logical Functions module

Overview

OR checks two or more conditions and returns TRUE if any of them pass. It's FALSE only when every condition fails.

Use it to flag rows that need attention for more than one reason.

Syntax

=OR(logical1, [logical2], …)

Arguments

ArgumentRequired?What it does
logical1YesThe first condition to test.
logical2, …OptionalUp to 255 more conditions.

Examples

Example 1 — Orders that need review

Northstar reviews any order from the West region, or any order of 1,000 or more.

D2fx=OR(B2="West", C2>=1000)
ABCD
1OrderRegionAmountReview?
21001East450FALSE
31002West300TRUE
41003East1200TRUE
51004North800FALSE
=OR(B2="West", C2>=1000) Explain

Example 2 — Weekend check

Is the date in A2 a Saturday or a Sunday?

=OR(WEEKDAY(A2)=1, WEEKDAY(A2)=7) Explain
WEEKDAY returns 1 for Sunday and 7 for Saturday by default.

Example 3 — Any match in a list

Does any status in the column say Overdue?

=OR(D2:D50="Overdue") Explain

Comparing a whole range gives a list of TRUE/FALSE values, and OR returns TRUE if even one is TRUE.

Common mistakes

  • Repeating the cell is required. =OR(B2="East", "West") doesn't work. Write the full test each time: =OR(B2="East", B2="West").
  • One answer, not one per row. Like AND, OR collapses a range to a single TRUE/FALSE.

Notes

  • Text comparisons aren't case-sensitive: "west" matches "West".
  • Related functions: AND, XOR, NOT, IF.
Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.