OR Function

Excel Functions › Logical

All Excel versions

The Excel OR function tests several conditions and returns TRUE when at least one of them is TRUE — only a clean sweep of FALSE produces FALSE. It’s the lenient counterpart to AND: where AND demands everything, OR is satisfied with anything. Inside IF, it builds rules like “free shipping if the order tops $100 or the customer is a member”.


Quick answer: to accept either of two conditions inside an IF:
=IF(OR(B2>=100, C2="Yes"), "Free shipping", "Standard rate")
OR returns TRUE if either test passes (or both); IF then picks the outcome. List as many conditions as you need, separated by commas.

Syntax

=OR(logical1, [logical2], ...)
ArgumentDescription
logical1RequiredThe first condition — anything that evaluates to TRUE or FALSE, like B2>=100.
logical2, …OptionalUp to 255 conditions in total. OR returns TRUE if any one of them is TRUE.

Available in: every version of Excel, desktop and web. Text and empty cells among the arguments are ignored; if nothing evaluates to a logical value, OR returns #VALUE!.

Any one condition is enough

Free shipping goes to orders of $100+ or to members. OR in D2, copied down, flags each order:

ABCD
1OrderTotalMember?Free ship?
2100186YesTRUE
3100242NoFALSE
41003120NoTRUE
5100435YesTRUE
=OR(B2>=100, C2="Yes") // TRUE when either holds - or both

Wrapped in IF for friendlier output:

=IF(OR(B2>=100, C2="Yes"), "Free shipping", "Standard rate")

A favorite use: testing one cell against several acceptable values — far cleaner than three nested IFs:

=IF(OR(A2="Mon", A2="Wed", A2="Fri"), "Gym day", "Rest day")

Try it: interactive OR demo

Live demo

Toggle the conditions and watch how little OR needs — a single checked box carries the day.

OR vs (a)+(b): why FILTER uses addition instead

Like AND, the OR function collapses everything it’s handed into a single TRUE/FALSE — so it can’t supply FILTER with one verdict per row. Array formulas express OR as addition:

=FILTER(A2:C50, (B2:B50>=100) + (C2:C50="Yes")) // row-by-row OR: add the conditions
=FILTER(A2:C50, OR(B2:B50>=100, C2:C50="Yes")) // wrong: OR collapses to one value for all rows

Adding coerces TRUE/FALSE to 1/0, so (a)+(b) is nonzero — treated as TRUE — when either condition holds. The multiplication twin (a)*(b) gives row-by-row AND. On a single row inside IF, stick with the readable OR function.

Need exactly-one-of-two? That’s exclusive or — the XOR function. Plain OR is inclusive: it’s happy when both conditions are TRUE.

Errors & common pitfalls

#VALUE! — no logical values found. Every argument was text or empty, so OR had nothing to test. Make each argument a real comparison: OR(A2="Mon", A2="Wed"), not OR(A2, B2) on text cells.

Pitfall: =IF(A2="Mon" OR "Wed", …). Excel has no infix OR keyword, and OR(A2="Mon","Wed") is wrong too — the bare text "Wed" isn’t a condition. Each alternative needs its own full comparison: OR(A2="Mon", A2="Wed").

Pitfall: using OR inside FILTER. It aggregates all rows into a single TRUE/FALSE, so the filter returns everything or nothing. Use (condition1)+(condition2) for a per-row OR — see the section above.

Pitfall: OR when you meant AND. “Flag orders from the West region over $500” is an AND (both must hold). OR fires when either holds and quietly over-flags. Translate the business rule carefully: and = all, or = any.

Practice workbook

📊
Download the free OR practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

How do I use OR inside an IF formula?
Put it in the test slot: =IF(OR(B2>=100, C2="Yes"), "Free shipping", "Standard rate"). OR condenses its conditions to one TRUE/FALSE and IF picks the outcome. Use AND instead when every condition must hold.
How do I test one cell against several values?
Repeat the comparison for each value: =OR(A2="Mon", A2="Wed", A2="Fri"). The shorthand OR(A2="Mon","Wed") doesn’t work — bare text isn’t a condition. For long lists, =COUNTIF(list, A2)>0 scales better.
What's the difference between OR and XOR?
OR (inclusive) is TRUE when at least one condition is TRUE, including when all are. XOR (exclusive) is TRUE when an odd number of conditions are TRUE - for two conditions, that means exactly one. Use XOR for either-but-not-both logic.
Why doesn't OR work inside FILTER?
OR collapses every value from every condition into one single TRUE/FALSE, but FILTER needs a verdict per row. Add the conditions instead: =FILTER(data, (B2:B50>=100)+(C2:C50="Yes")). Addition acts as a row-by-row OR.
Can I combine AND and OR in one formula?
Yes — nest them to mirror the business rule: =IF(AND(A2="West", OR(B2>=100, C2="Yes")), "Flag", "") requires the region and at least one of the other two conditions.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: AND · NOT · XOR · IF · IFS · FILTER