Exercices Excel

IF with the AND Function

Test multiple conditions at once using AND.

📖 Quick reference

The AND function checks that ALL conditions are true at the same time. Its syntax is =AND(cond1, cond2, ...). Combined with IF: =IF(AND(cond1,cond2), if_true, if_false).

Return 1 if A1 > 50 AND B1 > 50, otherwise return 0. Place the result in C1.

Click cell C1, type your formula and press Enter.

C1
A B C D E
Value 1 Value 2 Result
1
49
52
2
3
4
5
6