You are on page 1of 5

Using IF with AND & OR functions

In case you have to evaluate your data based on several sets


of multiple conditions, you will have to employ both AND &
OR functions at a time. Customer
Uriel
EXAMPLE 1: Dan
The supplier wants to mark the tshirt orders which
are in Red, both small and medium Amenadiel
Adam
Cal
Mazikeen
June
Linda
Eve
Lucifer
Breaking down the condition:
AND (Color="Red",OR(Size="Small",Size ="Medium")),"X","-")

Color Size Remarks


Blue Medium -
Red Large
Red Small
Green Small
Yellow Medium
Red Medium
Red Large
Black Small
Red Medium
Blue Small
,"X","-")
For a student to know if he/she passed/failed, a teacher Student Name
set these criteria:
Gendry
Condition 1 : Quiz 1= more than or equal to 20 Petyr
Quiz 2= more than or equal to 30 Renly
Joffrey
Condition 2 : Quiz 1= more than or equal to 15
Tommen
Quiz 2= more than or equal to 20
Margaery
If either of the above conditions is met, the final exam is Stannis
deemed PASSED, otherwise - FAILED. Rickon
Jorah
Ramsay
Quiz 1 Quiz 2 Remarks
28 32
19 29
13 33
27 34
14 30
25 50
15 48
27 39
20 19
15 20