The powerful COUNTIF function in Excel counts cells based on one criteria. This page contains many easy to follow COUNTIF examples. If you need help just make a ticket and we will be glad to help.


Numeric Criteria


Use the COUNTIF function in Excel to count cells that are equal to a value, count cells that are greater than or equal to a value, etc.


1. The COUNTIF function below counts the number of cells that are equal to 20.


Simple COUNTIF function in Excel


2. The following COUNTIF function gives the exact same result.


Count Cells Equal to Cell Value


3. The COUNTIF function below counts the number of cells that are greater than or equal to 10.

Count Cells Greater Than Or Equal to Value


4. The following COUNTIF function gives the exact same result.

COUNTIF function and the Ampersand Operator

Explanation: the & operator joins the 'greater than or equal to' symbol and the value in cell C1.

5. The COUNTIF function below counts the number of cells that are not equal to 7.


Count Cells Not Equal to Value

6. The COUNTIF functions below count the number of cells that are equal to 3 or 7.

Two COUNTIF functions in Excel