How to Use Excel COUNTIF Function (with Examples)

COUNTIF Function is one of the Statistical Functions, to count the number of cells that meet a criterion; for example, to count the number of times a student appears in an attendance list.

The simplest form of COUNTIF is:

=COUNTIF(Where do you want to look?, What do you want to look for?)

The COUNTIF function in Excel is used to count the number of cells.

Syntax:

COUNTIF (range, criteria)

Arguments:

1. range:- Here range refers to the range of the cells for which you want the cell count for a specific condition.

2. criteria:- Here criteria refers to the condition for which you want the cell count.

Return Value:- COUNTIF function in excel returns an integer value of the number of cells which satisfy the given condition.

Excel COUNTIF Function

The COUNTIF function in Excel is used to count the number of cells that match a single condition applied. It can include Dates, Numbers, and Texts. It uses various logical operators like <(Less Than), >(Greater Than), >=(Greater Than or Equal to), <=(Less Than or Equal to), =(Equals to), and <>(NOT) for matching the condition. It also uses some wildcards like * and ? for partial matching.

Similar Reads

How to Use Excel COUNTIF Function (with Examples)

COUNTIF Function is one of the Statistical Functions, to count the number of cells that meet a criterion; for example, to count the number of times a student appears in an attendance list....

COUNTIF Formula for Text and Numbers (Exact Match)

The COUNTIF function formula that counts text values matching a specified criterion is:...

COUNTIF Formulas with Wildcard Characters (partial match)

If your Excel data include several variations of the keywords you want to count, then you can use a Wildcard Character to count the cells containing that particular word, phrase, or letter as a cell’s content....

COUNTIF Greater than, Less than, or Equal to

To count cells with values greater than, less than, or equal to the number you specify, you simply add a corresponding operator to the criteria....

COUNTIF Not Blank

This formula example demonstrates how you use the COUNTIF function in Excel to count the number of blank cells in a specified range....

COUNTIF Blank

If you want to count blank cells in a certain range, use the formula with a wildcard character for text values and with the “” criteria to count all empty cells....

Excel COUNTIF with dates

If you want to Count cells with dates that are greater than, less than, or equal to the date you specify in another cell. All the above-discussed formulas work for dates as well as numbers....

Excel COUNTIF with Multiple Criteria

COUNTIF Function is not exactly designed to count cells with multiple criteria. The COUNTIFS function is used to count cells that match two or more criteria(AND logic). You can combine two or more COUNTIF functions in one formula to solve some easy tasks....

Using the COUNTIF Function to find Duplicates and Unique Values

We can also use the COUNTIF function for finding duplicates in one column, between two columns, or in a row....