Exercices Excel

IF with the OR Function

Check whether at least one condition is true using OR.

📖 Quick reference

The OR function checks whether AT LEAST ONE condition is true. Its syntax is =OR(cond1, cond2, ...). Combined with IF: =IF(OR(cond1,cond2), if_true, if_false).

Return 1 if A1 > 80 OR B1 > 80, 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
40
47
2
3
4
5
6