Page 107 - Computing E-Book Grade 5 (Updated)
P. 107
The City School 2021-2022
IF and AND together
Analysing Data
AND function can be used in a nested form with IF function, it just needs to put in the
formula like an equation in another equation. The syntax of IF and AND statements is:
=IF(AND(Something is True, Something
else is True), Value if True, Value if False)
In this above-mentioned example student’s result analysis refer to the condition where
they have to obtain more than 50% in Course Work and Exam and if any of the head is
less than 50 outcome will be FALSE and due to the IF function the string value “Fail” or
“Pass” will appear.
First part of the formula is a simple IF function =IF(AND(C2>=50,D2>=50),”Pass”,”Fail”).
In second part AND function is placed in logical test of IF function
=IF(AND(C2>=50,D2>=50),”Pass”,”Fail”). String values in double-quotes “” are case sensitive.
107

