COUNTIF Function in Excel

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

Description

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.

Syntax

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

=COUNTIF(B1:B4,"excel")

the above excel formula will return 2.

 

Comments

So empty here ... leave a comment!

Leave a Reply

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

Sidebar