Excel OR function: TRUE when at least one condition is met
The Excel OR function returns TRUE if at least one of several conditions is true. Using it inside IF, the most common mistakes and pro techniques.
OR tests several conditions and returns TRUE if at least one of them is met, and FALSE if none are. It is the everyday word “or”: “a bonus if the sales target is met or 10 new clients are found”.
OR is rarely used on its own. It sits as the condition inside IF, acts as a conditional formatting rule and helps validate data. Once you know it, any “one of several options” question takes a single formula.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | Sales, mln | New clients | Bonus? | |
| 2 | Aziz | 62 | 4 | ИСТИНА | |
| 3 | Dilnoza | 38 | 12 | ИСТИНА1 | |
| 4 | Javohir | 41 | 6 | ЛОЖЬ | |
| 5 | Kamola | 55 | 11 | ИСТИНА | |
| 6 |
Syntax
=ИЛИ(logical1; [logical2]; ...)
- logical1 — the first condition, an expression that returns TRUE or FALSE:
B2>=50,A2="Tashkent". - logical2, … — more conditions (optional). Up to 255 in total.
The rule is simple: one TRUE is enough for TRUE. The result is FALSE only when all conditions are FALSE.
Step by step: entering an OR formula
1
Select the cell for the result — for example, D2.
2
Open the Формулы tab, click Логические and pick OR from the list.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | Sales, mln | New clients | Bonus? | |
| 2 | Aziz | 62 | 4 | ||
| 3 | Dilnoza | 38 | 12 | ||
| 4 | |||||
| 5 |
3
In the Function Arguments window, put each condition in its own box: B2>=50 in Logical1, C2>=10 in Logical2. The result appears at the bottom right away. Click OK.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | Sales, mln | New clients | Bonus? | |
| 2 | Aziz | 62 | 4 | ||
| 3 | Dilnoza | 38 | 12 | ||
| 4 | |||||
| 5 |
4
Drag the fill handle (the small square at the bottom-right of D2) down, or double-click it — the formula is copied to the other rows.
5
Once you are comfortable, skip the window: type =ИЛИ(B2>=50;C2>=10) straight into the cell and press Enter.
Example 1: OR + IF — calculating a discount
When you need a readable result instead of TRUE/FALSE, put OR inside IF. Store rule: if the customer is a pensioner or spends 500,000 soum or more — 10% off.
=ЕСЛИ(ИЛИ(B2="Pensioner";C2>=500000);C2*10%;0)
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Customer | Type | Purchase | Discount | |
| 2 | Sardor | Regular | 320 000 | 0 | |
| 3 | Malika | Pensioner | 180 000 | 18 000 | |
| 4 | Bekzod | Regular | 750 000 | 75 000 | |
| 5 | Gulnora | Student | 90 000 | 0 | |
| 6 |
Example 2: conditions in cells — no formula edits
Instead of hard-coding city names into the formula, put them in separate cells. When Bukhara is added, you don’t touch the formula — you only change column F. The $ signs lock the references when you fill the formula down.
=ЕСЛИ(ИЛИ(B2=$F$2;B2=$F$3);"Free";"Paid")
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Order | City | Amount | Delivery | Free cities | ||
| 2 | #101 | Tashkent | 240 000 | Free | Tashkent1 | ||
| 3 | #102 | Andijan | 410 000 | Paid | Samarkand | ||
| 4 | #103 | Samarkand | 155 000 | Free | |||
| 5 | #104 | Namangan | 98 000 | Paid | |||
| 6 |
Pro level: combining with AND and testing a whole range
- OR inside AND (or the other way round). “Tashkent or Samarkand and amount over 1 mln”:
=И(ИЛИ(B2="Tashkent";B2="Samarkand");C2>=1000000). Parentheses set the order — the inner OR is evaluated first. - A whole range.
=ИЛИ(C2:C6>1000000)— is there at least one large order in the column? It works as is in Microsoft 365; older versions need Ctrl + Shift + Enter. - A short list.
=ИЛИ(B2={"Tashkent";"Samarkand";"Bukhara"})— one array instead of three comparisons. - Use `+` instead of OR in array math. OR collapses the whole array into a single TRUE/FALSE. When you need a per-row “or” inside SUMPRODUCT or FILTER, add the conditions:
(B2:B6="Tashkent")+(C2:C6>1000000).
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Order | City | Amount | VIP? | |
| 2 | #201 | Tashkent | 1 250 000 | Yes | |
| 3 | #202 | Samarkand | 640 000 | No | |
| 4 | #203 | Bukhara | 2 100 000 | No | |
| 5 | #204 | Samarkand | 1 800 000 | Yes | |
| 6 |
Try it in the simulator
Type =ИЛИ(B2>=50;C2>=10) in D2 and fill it down to D6. Who gets a bonus? Then change B4 to 52 and watch the result update.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Employee | Sales, mln | New clients | Bonus? | ||||||||||||||||||||
| 2 | Aziz | 62 | 4 | |||||||||||||||||||||
| 3 | Dilnoza | 38 | 12 | |||||||||||||||||||||
| 4 | Javohir | 41 | 6 | |||||||||||||||||||||
| 5 | Kamola | 55 | 11 | |||||||||||||||||||||
| 6 | Sardor | 47 | 9 | |||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.