Excel tutorial
/

Functions

Intermediate

Excel AND function: testing several conditions at once, IF + AND examples

Check that all conditions are met with AND: loans, scholarships, temperature ranges; IF + AND, nested IF, combining AND with OR, and common traps — with examples.

AND tests several conditions at once and returns TRUE only when all of them are met. If even one fails, it returns FALSE.

A bank loan: the client is at least 21 and earns at least 5 million soums a month. A scholarship: an average grade of 4.5 or more and no outstanding debts. Any rule you would say with the word “and” is an AND.

On its own AND only gives TRUE/FALSE. Its real power shows up together with IF: “if both conditions are met — bonus, otherwise — 0”.

Книга1 - Excel
—☐✕
D2fx=И(B2>=21;C2>=5000000)
ABCDE
1ClientAgeIncomeLoan possible?
2Aziz347 500 000ИСТИНА
3Dilnoza196 000 000ЛОЖЬ
4Javohir453 200 000ЛОЖЬ
5Malika285 000 000ИСТИНА
6Sardor229 000 000ИСТИНА
7
Готово
=И(B2>=21;C2>=5000000): Dilnoza gets FALSE because of her age, Javohir because of his income — one failed condition is enough for FALSE

Syntax

=И(logical1; [logical2]; ...)

  • logical1 — required: the first condition (B2>=21) or a cell holding TRUE/FALSE.
  • logical2, ... — optional: more conditions, up to 255.

The rule is simple: all conditions TRUE → TRUE, at least one FALSE → FALSE.

Its “twin” is OR: TRUE if at least one condition is met. “And” is AND, “or” is OR.

Example

AB
1Age25
2Income6000000

Formula:

=AND(B1>=21,B2>=5000000)

→ result: TRUE — both conditions are met

Entering AND

1

Select the result cell (D2) and choose Формулы → Логические → AND.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
D2fx
ABCDE
1ClientAgeIncomeLoan possible?
2Aziz347 500 000
3Dilnoza196 000 000
4
5
Готово

2

In the Function Arguments window put each condition in its own box: Logical1 — B2>=21, Logical2 — C2>=5000000. A new box appears automatically. Each box shows its own result (TRUE/FALSE), so you can see right away which condition is failing.

Книга1 - Excel
—☐✕
D2fx=И(B2>=21;C2>=5000000)
ABCDE
1ClientAgeIncomeLoan possible?
2Aziz347 500 000ИСТИНА
3Dilnoza196 000 000
4
5
Готово

3

Click OK and fill the formula down with the fill handle. Typing it is easy too: =И( → conditions separated by commas → ).

Книга1 - Excel
—☐✕
C3fx=И(A3;B3)
ABCDE
1Age ≥ 21Income ≥ 5 mlnANDOR
2ИСТИНАИСТИНАИСТИНАИСТИНА
3ИСТИНАЛОЖЬЛОЖЬИСТИНА
4ЛОЖЬИСТИНАЛОЖЬИСТИНА
5ЛОЖЬЛОЖЬЛОЖЬЛОЖЬ
6
Готово
Truth table: AND is TRUE only in the first row (both TRUE). OR is FALSE only in the last row (both FALSE)

IF + AND: turning a rule into a formula

Write the rule as a plain sentence, then break it into parts:

“If the average grade is at least 4.5 and there are 0 debts — increased scholarship.”

  1. “If …” → IF(
  2. “… and …” → AND(B2>=4.5,C2=0)
  3. “— increased” → "Increased", otherwise → the next check.

When you need three outcomes, each level of a nested IF gets its own AND:

=ЕСЛИ(И(B2>=4,5;C2=0);"Increased";ЕСЛИ(И(B2>=3,5;C2=0);"Regular";"None"))

Книга1 - Excel
—☐✕
D3fx=ЕСЛИ(И(B3>=4,5;C3=0);"Increased";ЕСЛИ(И(B3>=3,5;C3=0);"Regular";"None"))
ABCDE
1StudentAvg gradeDebtsScholarship
2Aziz4,80Increased
3Dilnoza4,71None
4Javohir3,90Regular
5Malika3,20None
6Sardor4,50Increased
7
Готово
Nested IF + AND: Dilnoza has an excellent grade but 1 debt — both ANDs are FALSE, so the result is “None”
Книга1 - Excel
—☐✕
C3fx=ЕСЛИ(И(B3>=2;B3<=8);"Normal";"Danger!")
ABCD
1TimeTemperature, °CStatus
208:004,5Normal
312:008,6Danger!
416:001,8Danger!
520:006,0Normal
6
Готово
Range check: “between 2 and 8” is two conditions, AND(B2>=2,B2<=8). A real example for a dairy fridge

Pro level: AND + OR, NOT and arrays

  • Mixing AND and OR: “from Tashkent and (VIP or a purchase over 10 million)” → =ЕСЛИ(И(B2="Tashkent";ИЛИ(C2="VIP";D2>=10000000));D2*5%;0). The brackets mirror the logic of the sentence.
  • NOT — negation: =И(B2>=21;НЕ(D2="Blacklist")).
  • Conditional formatting and Data Validation: both accept formula rules — =И($B2>=2;$B2<=8) highlights rows in range or allows only such numbers to be entered.
  • AND doesn’t work row by row in arrays. AND(B2:B10>=21) returns one answer for the whole column. Inside FILTER or SUMPRODUCT “and” is multiplication: =ФИЛЬТР(A2:A10;(B2:B10>=21)*(C2:C10>=5000000)), and “or” is addition.
  • Counting and summing by several conditions doesn’t need an IF+AND helper column: COUNTIFS and SUMIFS join their conditions with “and” on their own.
Книга1 - Excel
—☐✕
E4fx=ЕСЛИ(И(B4="Tashkent";ИЛИ(C4="VIP";D4>=10000000));D4*5%;0)
ABCDEF
1ClientCityTypePurchaseDiscount
2AzizTashkentVIP4 000 000200 000
3DilnozaSamarkandVIP12 000 0000
4JavohirTashkentRegular12 500 000625 000
5MalikaTashkentRegular3 000 0000
6
Готово
AND + OR: Javohir is not VIP, but he is from Tashkent and spent over 10 million — discount 625,000. Dilnoza is VIP but from Samarkand — 0

Try it in the simulator

Loan check: type =И(B2>=21;C2>=5000000) in D2 and fill it down to D6. Then type =ЕСЛИ(И(B2>=21;C2>=5000000);"Approved";"Declined") in E2 and fill it down too. Dilnoza and Javohir should get “Declined”.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1ClientAgeIncomeANDDecision
2Aziz347500000
3Dilnoza196000000
4Javohir453200000
5Malika285000000
6Sardor229000000
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

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

Support us
Previous

80 / 154