COUNTIF Function in Excel

This post will guide you how to use the COUNTIF function with syntax and examples in Microsoft excel.


The Excel COUNTIF function will count the number of cells in a range that meet a given criteria. This function can be used to count the different kinds of cells with number, date, text values, blank, non-blanks, or containing specific characters.etc.

we can also use the logical operators (>,>=,<,<=,<>,=) in Excel COUNTIF formula and also support wildcards characters (*,?) .

The COUNTIF function is a build-in function in Microsoft Excel and it is categorized as a Statistical Function.

The COUNTIF function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.


The syntax of the COUNTIF function is as below:

= COUNTIF (range, criteria)

Where the COUNTIF function arguments are:
Range -This is a required argument.  The range of cells that you want to apply the criteria to count
Criteria – This is a required argument.  The criteria used to define which cells are counted

 COUNTIF Function Examples

The below examples will show you how to use Excel COUNTIF Function to return the number of cells in a range based on a given criteria.

Example1: Count the number of cells in range B1:B4 that contain “excel” text values

COUNTIF Function Examples1


the above excel formula will return 2.

Related Posts

  • Count Cells That Contain Specific Text
    This post will discuss that how to count the number of cells that contain specific text or certain text in a specified cells of range in Excel. How to get the total number of cells that contain certain text.……
  • Count Cells That Contain  Text
    If you want to count the number of cells that contain text, you can use the COUNTIF function and a wildcard to create a new Excel Formula. ……
  • Highlight Cells That End with Specfic Characters
    If you want to highlight cells that end with a specific text string, you can create a simple formula based on the COUNTIF function to apply conditional formatting. ……
  • Finding the Max and Min value in an Alphanumeric Data
    if you want to find the Maximal or minimal string value from an alphanumeric data list in the range B1:B5, you can create a formula based on the LOOKUP function and the COUNTIF function.….


So empty here ... leave a comment!

Leave a Reply

Your email address will not be published. Required fields are marked *