
π This article includes 1 downloadable practice file β
In this article
OR returns TRUE if at least one condition is TRUE.
Syntax
=OR(logical1, [logical2], ...)
| Argument | What it means |
|---|---|
logical1β¦ |
Conditions to test. |
Examples
Example 1
=OR(E2="Delhi", E2="Mumbai", E2="Bengaluru")
Is the city a metro?
Example 2
=IF(OR(WEEKDAY(A2,2)>5, COUNTIF(Holidays,A2)), "Off", "Working")
Weekend or listed holiday.
Power combo
=OR(E2={"Delhi","Mumbai","Bengaluru"})
An array constant keeps long OR lists short.
OR in practice
Where you will use it
- Priority if customer is Gold OR order > Rs 5 lakh
- Flag rows missing any of several fields
- Allow multiple valid statuses
Worked example
| Tier | Order | Formula | Result |
|---|---|---|---|
| Gold | 120000 | =OR(A2="Gold",B2>500000) | TRUE |
| Silver | 650000 | =OR(A3="Gold",B3>500000) | TRUE |
| Silver | 90000 | =OR(A4="Gold",B4>500000) | FALSE |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Writing =A2="Gold" OR B2>5 | Use OR(...) or add conditions: (cond1)+(cond2)>0 |
| Many values for one cell | Use OR(A2={"N","E"}) or COUNTIF |
Related functions
π Part of the free Excel course: Beginner β Expert Β· Try it in the Formula Lab or ask the AI Helper.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
π Practice files for this article
- πPractice workbook: Logic, LET & LAMBDA17 tasks on realistic sales data β type your formula, the Check column turns green when it is right. Answers sheet included.β¬ XLSX Β· 35 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βBuild this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.