Excel tutorial
/

Functions

Intermediate

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.

Книга1 - Excel
—☐✕
D3fx=ИЛИ(B3>=50;C3>=10)
ABCDE
1EmployeeSales, mlnNew clientsBonus?
2Aziz624ИСТИНА
3Dilnoza3812ИСТИНА1
4Javohir416ЛОЖЬ
5Kamola5511ИСТИНА
6
Готово
Dilnoza missed the target but found 12 new clients — one condition is enough, so the result is TRUE. Javohir met neither — FALSE

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.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
D2fx
ABCDE
1EmployeeSales, mlnNew clientsBonus?
2Aziz624
3Dilnoza3812
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.

Книга1 - Excel
—☐✕
D2fx
ABCDE
1EmployeeSales, mlnNew clientsBonus?
2Aziz624
3Dilnoza3812
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)

Книга1 - Excel
—☐✕
D3fx=ЕСЛИ(ИЛИ(B3="Pensioner";C3>=500000);C3*10%;0)
ABCDE
1CustomerTypePurchaseDiscount
2SardorRegular320 0000
3MalikaPensioner180 00018 000
4BekzodRegular750 00075 000
5GulnoraStudent90 0000
6
Готово
Malika’s purchase is small, but she is a pensioner — she gets the discount. Bekzod gets it thanks to the amount

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")

Книга1 - Excel
—☐✕
D4fx=ЕСЛИ(ИЛИ(B4=$F$2;B4=$F$3);"Free";"Paid")
ABCDEFG
1OrderCityAmountDeliveryFree cities
2#101Tashkent240 000FreeTashkent1
3#102Andijan410 000PaidSamarkand
4#103Samarkand155 000Free
5#104Namangan98 000Paid
6
Готово
The list lives in column F: change a city and every result recalculates by itself

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).
Книга1 - Excel
—☐✕
D2fx=ЕСЛИ(И(ИЛИ(B2="Tashkent";B2="Samarkand");C2>=1000000);"Yes";"No")
ABCDE
1OrderCityAmountVIP?
2#201Tashkent1 250 000Yes
3#202Samarkand640 000No
4#203Bukhara2 100 000No
5#204Samarkand1 800 000Yes
6
Готово
The Bukhara order is large but not VIP: the OR part is FALSE, so AND is FALSE too

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.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1EmployeeSales, mlnNew clientsBonus?
2Aziz624
3Dilnoza3812
4Javohir416
5Kamola5511
6Sardor479
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

81 / 154