0% found this document useful (0 votes)
3 views5 pages

3. COUNTIF

The document explains the COUNTIF function, which counts items based on user-defined criteria in a specified range. It provides examples of how to use the function with different types of criteria, including numbers, text, and operators. Additionally, it includes practice tasks to reinforce understanding of the COUNTIF function.

Uploaded by

Saleem Chohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

3. COUNTIF

The document explains the COUNTIF function, which counts items based on user-defined criteria in a specified range. It provides examples of how to use the function with different types of criteria, including numbers, text, and operators. Additionally, it includes practice tasks to reinforce understanding of the COUNTIF function.

Uploaded by

Saleem Chohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 5

COUNTIF

Forumla Working
This function counts the number of items which match criteria set by the user.

Formula Structure
=COUNTIF(RangeOfThingsToBeCounted, CriteriaToBeMatched)
The criteria can be typed in any of the following ways:
To match a specific number type the number, such as =COUNTIF(E16:E24, 100) Ans: 1
To match a piece of text type the text in quotes, such as =COUNTIF(C16:C24, "Tyres") Ans: 3
To match using operators surround the expression with quotes, such as =COUNTIF(E16:E24, ">100") Ans: 4

Example 1

Item Purchase Date Cost (PKR)


=C16 Brakes 1-Jan-98 80
=C17 Tyres 10-May-98 25
=C18 Brakes 1-Feb-98 80
=C19 Service 1-Mar-98 150
=C20 Service 5-Jan-98 300
=C21 Window 1-Jun-98 50
=C22 Tyres 1-Apr-98 200
=C23 Tyres 1-Mar-98 100
=C24 Clutch 1-May-98 250

How many Brake Shoes Have been bought. 2


How many Tyres have been bought. 3
How many items cost with Rs.100 or above. 5

Type the name of the item to count. 0


=E30
Example 2

Fruits Quantity
Apples 32
Oranges 55
Peaches 75
Apples 86

Formula Tasks
=COUNTIF(B36:B39,"Apples") Count Number of Apples in Fruit list, using "Text" in criteria
=COUNTIF(B36:B39,B38) Count Number of Peaches in Fruit List, using Cell reference as
criteria
Count Number of Oranges and Apples in Fruit list
=COUNTIF(B36:B39,B37)+COUNTIF(B36:B39,B3
=COUNTIF(C36:C39,">55")
6)
Count Number of Values greater than 55 in Quantity List
t by the user.

F(E16:E24, 100) Ans: 1


TIF(C16:C24, "Tyres") Ans: 3
such as =COUNTIF(E16:E24, ">100") Ans: 4

=COUNTIF(C16:C24,"Brakes")
=COUNTIF(C16:C24,"Tyres") Criteria = Text or Number
=COUNTIF(E16:E24,">=100")

=COUNTIF(C16:C24,E30) Criteria = Cell Reference

Tasks Result C.W


r of Apples in Fruit list, using "Text" in criteria 2 2 Right Answer
r of Peaches in Fruit List, using Cell reference as 1 1 Right Answer
r of Oranges and Apples in Fruit list 3 3 Right Answer
r of Values greater than 55 in Quantity List 2 2 Right Answer
PRACTICE

Year Product Quantity Sold


2000 SRB 50
2001 BAC 25
2002 BAC 45
2003 BAC 40
2004 SRB 100
2005 BAC 80
2006 SRB 40
2007 BAC 55
2008 SRB 35
2009 SRB 1
2010 SRB 20
PRACTICE

Tasks
Using COUNTIF formula to calculate below tasks:

1. Count # of "SRB" products sold by schneider-electric 6

2. Count # of cases where "BAC" & "SRB" Products sold quantity > 50 3

3. Count # of cases where "BAC" & "SRB" Products sold quantity >= 80 2

Small & Residential Businesses = SRB


Building Automation & Control = BAC
=COUNTIF(D7:D17,"Rent")
=COUNTIF(E7:E17,">50")

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy