Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 3

COUNTIF

Item Date Cost


Brakes 1/1/2023 80
Tyres 3/10/2023 25
Brakes 2/1/2023 80
Service 3/1/2023 150
Service 1/5/2023 300
Window 2/1/2023 50
Tyres 4/1/2023 200
Tyres 3/1/2023 100
Clutch 2/1/2023 250

How many Brakes have been bought. 2


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

Type the name of the item to count. service 2

What Does It Do ?
This function counts the number of items which match criteria set by the user.

Syntax
=COUNTIF(Range,Criteria)

The criteria can be typed in any of the following ways.


To match a specific number type the number, such as =COUNTIF(A1:A5,100)
To match a piece of text type the text in quotes, such as =COUNTIF(A1:A5,"Hello")
To match using operators surround the expression with quotes, such as =COUNTIF(A1:A5,
=COUNTIF(C3:C11,"Brakes")
=COUNTIF(C3:C11,"Tyres")
=COUNTIF(E3:E11,">=100")

=COUNTIF(C4:C11,E18)

h criteria set by the user.

=COUNTIF(A1:A5,100)
as =COUNTIF(A1:A5,"Hello")
h quotes, such as =COUNTIF(A1:A5,">100")
COUNTIF

NAME STATE SALES Criteria Result


Jim MN 100 Sales over 100 4
Sarah CA 125 Sales by Jim 3
Jane GA 200 Sales in California 2
Steve CA 50
Jim WY 75
Joan WA 150
Jane GA 200
Jim WY 50

You might also like