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

CountIfFuncGrd 10

The COUNTIF function in Excel counts the number of cells within a specified range that meet defined criteria, such as equal to, not equal to, greater than, or less than a certain value. The syntax requires a range and a criteria, and it can handle both numeric and text values, returning a count as a positive number. Additionally, it supports wildcard characters for more flexible criteria matching.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views5 pages

CountIfFuncGrd 10

The COUNTIF function in Excel counts the number of cells within a specified range that meet defined criteria, such as equal to, not equal to, greater than, or less than a certain value. The syntax requires a range and a criteria, and it can handle both numeric and text values, returning a count as a positive number. Additionally, it supports wildcard characters for more flexible criteria matching.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

COUNTIF Function in Excel

Criteria Formula Example

Count if equal to =COUNTIF(A2:A10,"=5")

Count if not equal to =COUNTIF(A2:A10,"<>5")

Count if greater than or equal to =COUNTIF(C2:C8,">=5")

Count if less than or equal to =COUNTIF(C2:C8,"<=5")

The COUNTIF function in Excel counts the number of


cells within a range based on pre-defined criteria. It is
used to count cells that include dates, numbers, or text.
For example, COUNTIF(A1:A10,”Trump”) will count the
number of cells within the range A1:A10 that contain the
text “Trump”
Syntax
The syntax of COUNTIF formula in Excel is stated as follows:

It accepts the following required arguments:

 Range: It represents the range of values on which the criteria will


be applied.
 Criteria: It represents the condition that is applied to the range of
values. The values that meet the criteria are returned as a result.

The output of the COUNTIF formula is a positive number which can


be zero or non-zero.

COUNTIF Function in Excel


Explained in Video
How to Use COUNTIF Function in
Excel?
#1 – Count Values with the Given Value
The following table shows a list containing numerical values in the
cells A2:A7. Count the given range of cells for the values matching
the number “33”.

The COUNTIF function is applied to the given range of cells, and the
formula is stated as follows:

“=COUNTIF (A2:A7,33)”

Here the condition applied to the formula is the number “33”.The


formula checks the range of cells A2:A7 for the values matching
number “33”. The range contains only one such number, which
satisfies the condition. Hence the result returned by the COUNTIF
function is “1”. The result is displayed in cell A8.

#2 – Count Numbers with a Value Less Than


the Given Number
A list of data in the cells A12:A17 is provided in the succeeding
table. Count the given range of cells for the values less than “50”.

The COUNTIF function is applied to the given range of cells, and the
formula is stated as follows:

“=COUNTIF(A12:A17,“<50”)”

Here the condition applied to the formula is “<50”. The COUNTIF


formula checks the range of cells matching the condition, less than
50. There are only four values that are less than 50 in the range.
Hence the result returned by this function is “4”. The result is
displayed in cell A18.
#3 – Count Values with the Given Text Value
A list of data in the cells A22:A27 is provided in the below table.
Count the range of cells for the text value “john”.

The COUNTIF function is applied to the given range of cells, and the
formula is stated as follows:

“=COUNTIF(A22:A27, “john”)”

Here the condition applied to the formula is the value “john.” The
COUNTIF formula checks the range of cells matching the given
condition. The given range has only one cell that satisfies the text
value “john”. Hence, the result is “1” which is displayed in cell A28.

#4 – Count Negative Numbers


A list of data in the range of cells A32:A37 is provided in the below
table. Count the range of cells for negative values (that is, less than
zero).

The COUNTIF function is applied to the given range of cells, and the
formula is stated as follows:

“=COUNTIF(A32:A37, “<0”)”

Here the condition applied to the formula is less than zero. Now, the
COUNTIF formula will identify and count the numbers with negative
values in the given range. There are three such numbers in the
given range. Hence, the result is “3” which is displayed in cell A38.

#5 – Count Zero Values


A list of data in the range of cells A42:A47 is provided in the below
table. Count the range of cells for the value “0”.

The COUNTIF function is applied to the given range of cells, and the
formula is stated as follows:

“=COUNTIF(A42:A47,0)”

Here the condition applied to the formula is equal to “0”. Now the
COUNTIF formula will identify and count the numbers with zero
values. There are two zeros in the range. Hence, the result returned
is “2” which is displayed in cell A48.
The Criteria of the COUNTIF
Formula
It is enclosed within double quotes if non-numeric and without
quotes if numeric.

It returns the result only if the values in the cell range satisfy the
given criteria.

It can be supplied with wildcard characters like “*” and “?”. The
question mark matches any one of the characters, and the asterisk
matches any sequence of characters.

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