AND
Checks whether every condition is true.
- Decide
- Practised in 1 lesson
Worked example
D2=AND(B2>=18,C2="Yes")
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Passenger | Age | Ticket | Board |
| 2 | Amara | 34 | Yes | |
| 3 | Jonas | 15 | Yes | |
| 4 | Priya | 41 | No |
AND gives TRUE only when every condition holds for that row.
How to write it
=AND(logical1, [logical2], …)
logical1- The first condition, for example B2>=18.
logical2, …- More conditions. All of them must be true.
Try AND yourself
The tasks for this function are part of Pro, which isn’t on sale yet. The lesson and its worked example are open to everyone.
See the lessonWatch out for
- Text needs quotes: C2="Yes", not C2=Yes.
- A range check needs two conditions: AND(B2>=10,B2<=20). Excel has no 10<=B2<=20.