ProofDrill

AND

Checks whether every condition is true.

Worked example

Who may board: adult, with a ticket?

D2=AND(B2>=18,C2="Yes")

RowABCD
1PassengerAgeTicketBoard
2Amara34Yes
3Jonas15Yes
4Priya41No

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.
Part of Pro

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 lesson

Watch 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.

Practise it