Session10B Logical Function
Session10B Logical Function
International
Holidays
Sales
22
13
HOLIDAY
14
5
67
67
56
8 HOLIDAY
9 HOLIDAY
3
67
HOLIDAY
56
8
67
56
8
9 HOLIDAY
3 HOLIDAY
56
8
9
3
S. No Data1 Data2 Data3 Data4 COUNT
1 1 22-Jan-24 NAME
2 0 2 TEXT #VALUE!
3 CHARACTER TEXT
4 0 23-Jan-25
5 #DIV/0! #DIV/0! 23-Jan-23 0
oranges No
peaches No
apples Yes
Description Formula
Number of cells ending with the letters "es" in cells A2
through A7.
Number of cells ending with the letters "les" and having
exactly 6 letters in cells A2 through A7.
Number of cells containing text in cells A2 through A7.
Number of cells not containing text in cells A2 through A7.
th?
S No. YEAR SALES CRITERIAè 2020
1 2020 200 SUMIFè
2 2021 230
3 2020 250
4 2021 210
5 2021 215
6 2022 210
7 2020 250
8 2022 221
9 2021 282
10 2022 240
11 2020 210
12 2022 198
Sales Revenue Revenue
S No. Period Product (Year 1) (Year 2)
Description
1 Q1 P1 200 230 TOTAL SALES Q1-YEAR1
2 Q1 P2 230 210 TOTAL SALES P3-YEAR 2
3 Q1 P3 250 210
4 Q2 P1 210 250
5 Q2 P2 215 240
6 Q2 P3 210 250
7 Q3 P1 250 260
8 Q3 P2 221 210
9 Q3 P3 282 250
10 Q4 P1 240 280
11 Q4 P2 210 250
12 Q4 P3 198 210
Result
Sum up the total Quantity for Shop S12
(D5>50,"SECOND",IF(D5>33,"THIRD","FAIL")))
No of subjects
Name Physics Chemistry Maths Computers
Passed
Alpha P Fail P Fail 2
Bravo P Fail P Fail 2
Charlie P P P P 4
Delta Fail P Fail P 2
Echo P Fail P P 3
Foxdot P P P P 4
Golf P P P P 4
Description Formula
Counts how many times Alpha exceeded a sales
Target for Toothpaste, Purfumes and Washing Soap
Counts how many sales people exceeded both their
Toothpaste and Purfumes Target
Counts how many Sales man exceede all of his target
Data1 Data2
1 1/5/2008
2 2/5/2008
3 3/5/2008
4 4/5/2008
5 5/5/2008
6 6/5/2008
Description Result
Counts how many numbers between 1 and 6 (not including 1
and 6) are contained in cells A2 through A7.
Counts how many rows have numbers that are less than 5 in
cells A2 through A7, and also have dates that are are earlier
than 5/3/2008 in cells B2 through B7.
Same description as the previous example, but using cell
references instead of constants in the criteria.
Data1 Data2
1 1/5/2008
2 2/5/2008
3 3/5/2008
4 4/5/2008
5 5/5/2008
6 6/5/2008
Description Result
Counts how many numbers between 1 and 6 (not including 1
and 6) are contained in cells A2 through A7. 4
Counts how many rows have numbers that are less than 5 in
cells A2 through A7, and also have dates that are are earlier 2
than 5/3/2008 in cells B2 through B7.
Same description as the previous example, but using cell
references instead of constants in the criteria. 2
List of products indicating how many items are sold, delivered and in stock.
Product Sold Delivered In Stock Comparison Count the numbers of products where at
Product 1 12 12 0 1 least one product has been sold and
Product 2 4 4 0 1 delivered, i.e. values in columns Sold
and Delivered (both) are greater than 0
Product 3 12 11 1 0
Product 4 12 11 1 0 Count the numbers of products where all
Product 5 0 0 0 1 product that has been sold are delivered
Product 6 1 0 1 0 also.
Product 7 12 11 1 0
Product 8 3 3 0 1 All three values are zero
Product 9 12 5 7 0
Product 10 0 0 0 1
k.
2
Project Assigned To Start Date End Date
Project1 Alfa 12/18/2022 12-Dec-17
Project2 Bravo 10-Jan-17
Project3 11-Dec-18 12-Dec-17
Project4 Bravo 12-Jan-17 13-Dec-18
Project5 Charlie 13-Jan-17
Project6 14-Jan-17 15-Jan-17
Project7 Peter 12/18/2022
Project8 Mike 12/18/2022 14-Dec-17
Project9 Roger 1/19/2015 12/18/2022
Project10 Indigo 14-Jan-17 15-Jan-17
Project Assigned But Not Finished 3
Project Assigned AND Finished 5
Month SalesRep Type Amount Description
January Albert New 85 0 Amount >100 and <=200
January Albert New 675 0 January sales for Brooks that exceed 1000
January Brooks New 130 1 Cell of January and February sales
January Cook New 1350 0 How many incident with January sales for
January Cook Existing 685 0 Brook or Cook
January Brooks New 1350 0
January Cook New 475 0
January Brooks New 1205 0
February Brooks Existing 450 0
February Albert New 495 0
February Cook New 210 0
February Cook Existing 1050 0
February Albert New 140 1
February Brooks New 900 0
February Brooks New 900 0
February Cook New 95 0
February Cook New 780 0
March Brooks New 900 0
March Albert Existing 875 0
March Brooks New 50 0
March Brooks New 875 0
March Cook Existing 225 0
March Cook New 175 1
March Brooks Existing 400 0
March Albert New 840 0
March Cook New 132 1
COUNTIF
4
2
#REF!
6
S No. Quarter Product Country Revenue SUMIFS
1 Q1 P1 INDIA 230
2 Q1 P2 USA 210 FIND THE TOTAL SALES FOR BELOW CRITERIA
3 Q1 P3 FRANCE 210 Q2 740
4 Q2 P3 FRANCE 250 Q2 P3 500
5 Q2 P2 INDIA 240 Q2 P3 FRANCE
6 Q2 P3 USA 250
7 Q3 P1 USA 260
8 Q3 P2 FRANCE 210
9 Q3 P3 INDIA 250
10 Q4 P1 INDIA 280
11 Q4 P2 FRANCE 250
12 Q4 P3 USA 210
MONTH HEAD COUNTRY EXPENSE (€) AVERAGEIFS
JAN MOBILE INDIA 230
JAN TRAVEL USA 210 AVERAGE MONTHLY EXPENSE FOR BELOW CRITERIA
JAN FOOD FRANCE 210 MOBILE
FEB MOBILE FRANCE 250 MOBILE FRANCE
MAY TRAVEL INDIA 240 TRAVEL INDIA MAY
FEB FOOD USA 250
MAR MOBILE USA 260
MAR TRAVEL FRANCE 210
MAR FOOD INDIA 250
APR MOBILE INDIA 280
APR TRAVEL USA 240
APR FOOD FRANCE 250
MAY MOBILE FRANCE 260
MAY TRAVEL INDIA 210
MAY FOOD USA 210
JUN MOBILE USA 250
JUN TRAVEL FRANCE 240
JUN FOOD INDIA 240
ERAGEIFS
MINIFS
MINIMUM COST PER UNIT FOR BELOW CRITERIA
SOCKS
T-SHIRT 3
Using IFERROR function, following error types are evaluated:
#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!.