Session 8
Session 8
Session 8
AND
OR
XOR
NOT
IF
IFS
IFERROR
IFNA
TRUE
FALSE
Logical Operators Sales Sales =
= 19 13 0
<> 12 12
> 11 10
< 10 -5
>= 20 15
<=
FALSE FALSE
AND OR XOR
1 TRUE
NOT
Logic Result
True Count is ODD TRUE
All cells are FALSE FALSE
True Count is EVEN FALSE
Expression4 Result
TRUE FALSE
FALSE TRUE
FALSE FALSE
Employee 01 02 03 04 05 06 07 08 09 10
Anjali Ray P P P P P P P P P P
Suraj Cheema P P P P P P P P P P
Rajesh Rai P P P P A A A A A P
Aditi Chaudhuri P P P P P P P P P P
Sid Rout P P P P P P P P P P
Employee 01 02 03 04 05 06 07 08 09 10
Anjali Ray P P P P P P P P P P
Suraj Cheema P P P P P P P P P P
Rajesh Rai P P P P A P P P P P
Aditi Chaudhuri P P P P P P P P P P
Sid Rout P P P P P P P P P P
Condition TRUE
Not more than 2 approved leaves
Not more than 1 unapproved leave
Criteria
>=80 Sales - Rs. 2000
>=50 and <80 Rs. 1000
>=25 and <50 Rs. 500
Employee 01 02 03 04 05 06 07 08 09 10
Anjali Ray W/O A P P P P W/O W/O P P
Suraj Cheema W/O P P P P A W/O W/O P P
Rajesh Rai W/O P P P A P W/O W/O A P
Aditi Chaudhuri W/O P P P P P W/O W/O P P
Sid Rout W/O P P P P P W/O W/O P P
Condition
if absent on Monday - not eligible
if absent on Friday - not eligible
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
P P P A P P P P P P P P P P P
P P P P P P P P P P P P P P P
P P P P P P P P P P P P P P P
P P P P P P P P P A A A P P P
P P P P P P P P P P P P P P P
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
P P P A P P P P L L L L L L L
P P P P P P P P P P P L L L P
P P P L L P P P P P P P P P P
P P P P P P P L L A A A P P P
P P P P P P P P P P P P P P P
FALSE
Incentive Incentive
2000 2000 2000
500 500 500 CheckAnotherCondition
0 0 #N/A YES IT IS NA CheckAnotherCondition
500 500 500
1000 1000 1000
1 TRUE
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
P P P W/O W/O A P P P P W/O W/O P P P
P A P W/O W/O P P P P A W/O W/O P P P
P P P W/O W/O A P P P P W/O W/O P P P
P P P W/O W/O P P P P A W/O W/O P P P
P P A W/O W/O A P P P P W/O W/O P P P
2 0 2
3 3
3 0
1 1
2 1
26 27 28 29 30 31 Days Present Eligibility
P P P P P P 30 Eligible
P P P P P P 31 Eligible
P P P P P P 26 NA
P P P P P P 28 NA
P P P P P P 31 Eligible
TRUE
TRUE
26 27 28 29 30 31 Eligibility
P P W/O W/O P P NA
P A W/O W/O P P Eligible
P P W/O W/O A P NA
P P W/O W/O P P Eligible
P P W/O W/O P P NA
This is the final homework for today's functions with some of the functions that we have covered in the previous
1 If the total sum of sales for Nintendo for Genre-Shooter is greater than 2.5 lakhs then return "Target met" else retu
Using IF and SUMPRODUCT
Using IF and SUMIFS
2 Convert the belwo 4 criteria to formulas to return TRUE or FALSE. None of the 4 criteria is interconnected with oth
Criteria 1 Count of Nintendo is > 3
Criteria 2 Count of Shooter is > 5
Criteria 3 sum of total qty > 500
Criteria 4 average of total sales is >18 Lakhs
Use the above TRUE/FALSE from G25:G28 in XOR and return the result.
3 Using Vlookup find the total sales. Handle any errors using IFERROR/IFNA. If there is an error then return "Not Fou
4 If the sales of the employee is above the average sales then return "Above Average" else return "Below Average".
Make proper use of Relative and Absolute referencing.
5 If the name of the employee starts with "A" AND the sales is greater than 50 then return TRUE else return FALSE
TRUE FALSE
0
0
0
0
is an error then return "Not Found". Once you have written the formula, change "Berkeley" in cell B39/B40 to "Apple" and see if you get "
e" else return "Below Average". Do not calculate the Average manually.
return TRUE else return FALSE
to "Apple" and see if you get "Not Found"