6- Extended if Functions
6- Extended if Functions
Qtry
List Price
From To
Commission
1
2
3
Commission
1
2
3
got promotion 0
total 25
% age of people who got promotion 0.00%
Calculate the commission of every
Nicolo
Adams
Reagan
Mustafa
86
IF LOGIC
TRUE FALSE
hire him reject him
Excel Quiz Pass/ Fail Grading
95 PASS A+ 90
75 PASS A 75
65 PASS Fail 50
35 PASS Fail
marks grades
85 A+
70 A
Fail
excellent
good
Fine
Very bad
AND
Syntax
=AND(Test1,Test2)
Note that there can be up to 255 possible tests.
Formatting
When used by itself it will show TRUE or FALSE.
Example 1
The following example shows a list of examination results.
The teacher wants to find the pupils who scored above average in all three exams.
The =AND() function has been used to test that each score is above the average.
The result of TRUE is shown for pupils who have scored above average in all three exams.
Averages 47 54 60
=AVERAGE(C29:C38)
if(or)
give admission =AND(C4>=100,D4>=100)
give admission =AND(C5>=100,D5>=100)
give admission =AND(C6>=100,D6>=100)
NO Admission =AND(D7>=1,D7<=52)
Passed
1
0
0
1
0
0
0
1
0
0
=AND(C38>=AVERAGE($C$29:$C$38),D38>=AVER
29:$C$38),D38>=AVERAGE($D$29:$D$38),E38>=AVERAGE($E$29:$E$38))
OR
Payment
Order No. Cost
Type
AB001 1,000 Cash
AB002 1,000 Visa
AB003 2,000 Cheque
AB004 5,000 Delta
Syntax
=OR(Test1,Test2)
Note that there can be up to 255 possible tests.
Formatting
When used by itself it will show TRUE or FALSE.
Example
The following table shows a list of orders taken by a company.
A handling charge of $5 is made on all orders paid by Visa or Delta cards.
The =OR() function has been used to determine whether the charge needs to be applied.
Payment
Order No. Cost
Type
AB001 1,000 Cash
AB002 1,000 Visa
AB003 2,000 Cheque
AB004 5,000 Delta
Handling Charge
0 =IF(OR(E4="Visa",E4="Delta"),5,0)
5 =IF(OR(E5="Visa",E5="Delta"),5,0)
0 =IF(OR(E6="Visa",E6="Delta"),5,0)
5 =IF(OR(E7="Visa",E7="Delta"),5,0)
Handling Charge
0 =IF(OR(E27="Visa",E27="Delta"),5,0)
5
0
5
sprintzeal
1
2
3