You are on page 1of 38

COUNTè Counts the number of cells containing NUMBERS and DATES

COUNTAè It counts Logical Values, Numbers, Dates, Text and Error


COUNTBLANKè Counts the blank cells in a range (Blank is different from zero or space)

QUES1: Count number of sales days in all regions


QUES2: Count number of HOLIDAYs
North East Central
Date South Sales West Sales
Sales Sales Sales
1-Jan-22 12 5 1
2-Jan-22 22 8 2 5 4
3-Jan-22 13 9 3 8 7
4-Jan-22 34 9
5-Jan-22 14 5 34
6-Jan-22 5 14 8
7-Jan-22 67 9 14 22
8-Jan-22 5 34 13
9-Jan-22 56 43 5
10-Jan-22 8 5 14 43 14
11-Jan-22 9 23 5 5
12-Jan-22 3 5 23 67
13-Jan-22 45 3 43 22
14-Jan-22 67 5 13 22
15-Jan-22 33 23 13
16-Jan-22 2 22 14
17-Jan-22 13 3 5 14
18-Jan-22 67 67
19-Jan-22 5 14
20-Jan-22 8 5 22 56
21-Jan-22 9 67 13 3 8
22-Jan-22 34 4 9
23-Jan-22 2 14 6 3
24-Jan-22 14 2 5 7
25-Jan-22 2 67 34
26-Jan-22 5 3 22 2
27-Jan-22 43 1 6 13 67
28-Jan-22 5 5 6 21
29-Jan-22 23 6 14
30-Jan-22 4 5 3
31-Jan-22 3 6 67 3
Total Days
MBERS and DATES
Text and Error
different from zero or space)

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

Find out the No of cells having Non Numbers and Textè


COUNTBLANK
COUNTA COUNTBLANK
(COUNTIF)
DATE Name of Students Attendance(Hours) DATE
1-Jan-22 MANSI GARG 0 1-Jan-22
2-Jan-22 MANVI VISHNOI 2 2-Jan-22
3-Jan-22 MARIA RASHID 2 3-Jan-22
4-Jan-22 MAYANK 2 4-Jan-22
5-Jan-22 MAYANK ARYA 0 5-Jan-22
6-Jan-22 MAYANK SHARMA 2 6-Jan-22
7-Jan-22 MAYANK SINGH 0 7-Jan-22
8-Jan-22 MD SAHIR 2 8-Jan-22
9-Jan-22 MEENAL GIRI 0 9-Jan-22
10-Jan-22 MEGHA GABA 0 10-Jan-22
Number of Absent Daysè Number of Presen
Number of Presen
Name of Students Attendance(Hours)
MANSI GARG 1
MANVI VISHNOI 2
MARIA RASHID 2
MAYANK 2
MAYANK ARYA 1
MAYANK SHARMA 2
MAYANK SINGH 0
MD SAHIR 2
MEENAL GIRI 0
MEGHA GABA 0
Number of Present Days è
Number of Present Days è
Data Data
apples 32
oranges 54
peaches 75
apples 86
Description Formula
Number of cells with apples in cells A2 through A5.
Number of cells with peaches in cells A2 through A5.
Number of cells with oranges and apples in cells A2 through A5.
Number of cells with a value greater than 55 in cells B2 through B5.

Number of cells with a value not equal to 75 in cells B2 through B5.


Number of cells with a value greater than or equal to 32 and less than
or equal to 85 in cells B2 through B5.
Data Data
apples 32
oranges 54
peaches 75
apples 86
Description Formula
Number of cells with apples in cells A2 through A5. 2
Number of cells with peaches in cells A2 through A5. 1
Number of cells with oranges and apples in cells A2 through A5. 3
Number of cells with a value greater than 55 in cells B2 through B5. 2

Number of cells with a value not equal to 75 in cells B2 through B5. 3


Number of cells with a value greater than or equal to 32 and less than 3
or equal to 85 in cells B2 through B5.
Data Data
apples Yes

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.

The average number of No votes (including blank cells) in


cells B2 through B7.
The average number of Yes votes (excluding blank cells) in
cells B2 through B7.
Blank Cells
FORMULA TO COUNT ALL NON BLANK
ROWS
= COUNTIF(RANGE,"<>")
Matches PLAYER 1 PLAYER 2 PLAYER 1 and PLAYER 2Jadeja have been assigned num
M1 DD a and alphabets randomly 30 Matches.
M2 AA A But, during these matches they were awarded an "X" each
they give Xcellent performance.
M3 c c
Each "X" carries 20 points, based on which there cricket
M4 X a ratings will be calculated.
M5 2 2
M6 4 56 Find out their total points tally for both?
M7 aa e
M8 X f
M9 g g PLAYER 1 Points
M10 0 o PLAYER 2 Points
M11 y y
M12 X 78
M13 9 c
M14 10 10
M15 12 12
M16 s s
M17 X X
M18 X e
M19 X g
M20 g X
M21 u 7
M22 o X
M23 X 4
M24 X 23
M25 X X
M26 6 1
M27 3 3
M28 4 4
M29 5 X
M30 6 6
e been assigned number

awarded an "X" each time

which there cricket

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

SHOP ITEM QUANTITY


S12 T-Shirt 150
S13 T-Shirt 250
S14 T-Shirt 275 SUMIF
S12 T-Shirt 350
S16 T-Shirt 250
S12 T-Shirt 225
S18 T-Shirt 400
S No. PRODUCT YEAR SALES CRITERIAè 2020
1 P1 2020 200 AVERAGEIFè
2 P2 2020 250
3 P3 2020 250
4 P4 2020 210 CRITERIAè P1
5 P1 2021 230 AVERAGEIFè
6 P2 2021 210
7 P3 2021 215
8 P4 2021 282
9 P1 2022 210
10 P2 2022 221
11 P3 2022 240
12 P4 2022 198
S No. STUDENT YEAR MARKS AVERAGE MARKS
1 ST1 FIRST 50 FIRST
2 ST2 FIRST 100 SECOND
3 ST3 FIRST 100
4 ST4 FIRST 60
5 ST5 FIRST 80
6 ST1 SECOND 60
7 ST2 SECOND 65
8 ST3 SECOND 132
9 ST4 SECOND 60
10 ST5 SECOND 71
11 ST6 SECOND 90
12 ST7 SECOND 48
Shopping Product Quantity Cost per Expense
Mall Purchased Unit
A Socks 6 ₹ 150 ₹ 900
C Shirts 4 ₹ 1,500 ₹ 6,000
C Tie 5 ₹ 800 ₹ 4,000
D Pants 3 ₹ 2,000 ₹ 6,000
E Jackets 2 ₹ 4,000 ₹ 8,000
C Jeans 2 ₹ 3,000 ₹ 6,000

Average Expense Per


product at Mall C
Find out the division, If above 60% - FIRST , Above 50% - SECOND
Above 33% - THIRD and less than 33% - FAIL
USE IFS
Name MAX Marks Marks Obtained %age
Student1 500 380 76
Student2 500 100 20
Student3 500 390 78
Student4 500 160 32
Student5 500 260 52
Student6 500 380 76
NESTED IF è =IF(D5>60,"FIRST",IF(D5>50,"SECOND",IF(D5>33,"THIRD","FAI
bove 50% - SECOND
d less than 33% - FAIL
FS
Division
FIRST

(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

Find students passed in all subjects (COUNTIFS)


Find students passed in all subjects (COUNTIF)
Sales Exceeded ToothPaste Exceeded Purfumes Exceeded Washing
Person Target Target Soap Target
Alpha YES NO NO
Bravo YES YES NO
Charlie YES YES YES

Delta NO YES YES

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

PENSE FOR BELOW CRITERIA


Date Shop Product Quantity Cost per
Purchased Sold Unit
12/18/2022 S13 Socks 6 ₹ 150
12/18/2022 S14 Shirts 4 ₹ 150 MAXIMUM COST P
12/19/2022 S12 Tie 5 ₹ 800 S13
12/19/2022 S15 T-Shirt 3 ₹ 200 S13
12/20/2022 S12 Socks 2 ₹ 400 S13
12/20/2022 S13 Shirts 2 ₹ 300
12/21/2022 S14 Tie 5 ₹ 150
12/21/2022 S12 T-Shirt 3 ₹ 250 MINIMUM COST P
12/22/2022 S15 Socks 6 ₹ 275 S13
12/22/2022 S13 Shirts 8 ₹ 350 S13
12/23/2022 S14 Tie 7 ₹ 250 S15
12/23/2022 S12 T-Shirt 2 ₹ 225
12/24/2022 S15 Socks 5 ₹ 400
12/24/2022 S13 Shirts 3 ₹ 200
12/25/2022 S12 Tie 2 ₹ 400
12/25/2022 S13 T-Shirt 5 ₹ 300
MAXIFS
MAXIMUM COST PER UNIT FOR BELOW CRITERIA
₹ 800
SOCKS 150
T-Shirt 3

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!.

Total Units Sold No of Salesman Units Sold


Per Salesman
Product 1 357667 6 59611.1666666667
Product 2 267489 4 66872.25
Product 3 2 0
Product 4 200 0 #DIV/0!
Product 1 357667 6 59611.1666666667
Product 2 267489 4 66872.25
Product 3 2 0
Product 4 200 0 #DIV/0!
Product 1 357667 6 59611.1666666667
Product 2 267489 4 66872.25
Product 3 2 0
Product 4 200 0 #DIV/0!
1. Calculate Cumulative Sales for each period
Period 1 Period 2 Period 3 Period 4 Period 5
Sales 10 20 5 18 20
Cumulative Sales1
Cumulative Sales2

2. Calculate No of Columns Using Excel features

You might also like