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”.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Client | Age | Income | Loan possible? | |
| 2 | Aziz | 34 | 7 500 000 | ИСТИНА | |
| 3 | Dilnoza | 19 | 6 000 000 | ЛОЖЬ | |
| 4 | Javohir | 45 | 3 200 000 | ЛОЖЬ | |
| 5 | Malika | 28 | 5 000 000 | ИСТИНА | |
| 6 | Sardor | 22 | 9 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 FALSESyntax
=И(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
Formula:
=AND(B1>=21,B2>=5000000)→ result: TRUE — both conditions are met
Entering AND
1
Select the result cell (D2) and choose Формулы → Логические → AND.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Client | Age | Income | Loan possible? | |
| 2 | Aziz | 34 | 7 500 000 | ||
| 3 | Dilnoza | 19 | 6 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.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Client | Age | Income | Loan possible? | |
| 2 | Aziz | 34 | 7 500 000 | ИСТИНА | |
| 3 | Dilnoza | 19 | 6 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 → ).
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Age ≥ 21 | Income ≥ 5 mln | AND | OR | |
| 2 | ИСТИНА | ИСТИНА | ИСТИНА | ИСТИНА | |
| 3 | ИСТИНА | ЛОЖЬ | ЛОЖЬ | ИСТИНА | |
| 4 | ЛОЖЬ | ИСТИНА | ЛОЖЬ | ИСТИНА | |
| 5 | ЛОЖЬ | ЛОЖЬ | ЛОЖЬ | ЛОЖЬ | |
| 6 |
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.”
- “If …” →
IF( - “… and …” →
AND(B2>=4.5,C2=0) - “— 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"))
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Student | Avg grade | Debts | Scholarship | |
| 2 | Aziz | 4,8 | 0 | Increased | |
| 3 | Dilnoza | 4,7 | 1 | None | |
| 4 | Javohir | 3,9 | 0 | Regular | |
| 5 | Malika | 3,2 | 0 | None | |
| 6 | Sardor | 4,5 | 0 | Increased | |
| 7 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Time | Temperature, °C | Status | |
| 2 | 08:00 | 4,5 | Normal | |
| 3 | 12:00 | 8,6 | Danger! | |
| 4 | 16:00 | 1,8 | Danger! | |
| 5 | 20:00 | 6,0 | Normal | |
| 6 |
AND(B2>=2,B2<=8). A real example for a dairy fridgePro 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:
COUNTIFSandSUMIFSjoin their conditions with “and” on their own.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Client | City | Type | Purchase | Discount | |
| 2 | Aziz | Tashkent | VIP | 4 000 000 | 200 000 | |
| 3 | Dilnoza | Samarkand | VIP | 12 000 000 | 0 | |
| 4 | Javohir | Tashkent | Regular | 12 500 000 | 625 000 | |
| 5 | Malika | Tashkent | Regular | 3 000 000 | 0 | |
| 6 |
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”.
| 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 | Client | Age | Income | AND | Decision | |||||||||||||||||||
| 2 | Aziz | 34 | 7500000 | |||||||||||||||||||||
| 3 | Dilnoza | 19 | 6000000 | |||||||||||||||||||||
| 4 | Javohir | 45 | 3200000 | |||||||||||||||||||||
| 5 | Malika | 28 | 5000000 | |||||||||||||||||||||
| 6 | Sardor | 22 | 9000000 | |||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.