COUNTIFS Function (2024)

Counts the number of cells that meet a single or multiple criteria

Written byCFI Team

Over 2 million + professionals use CFI to learn accounting, financial analysis, modeling and more. Unlock the essentials of corporate finance with our free resources and get an exclusive sneak peek at the first module of each course. Start Free

The COUNTIFS function in Excel counts the number of cells that meet one or more criteria across multiple ranges. It is an advanced version of COUNTIF, supporting up to 127 range/criteria pairs. The function is used for data analysis tasks, such as counting tasks by date and priority. Syntax: =COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], …). It handles numerical, text, and wildcard criteria. Common errors include mismatched range lengths and overly long text strings.

What is the COUNTIFS Function?

The COUNTIFS Function[1] is categorized under Excel Statistical functions. COUNTIFS will count the number of cells that meet a single criterion or multiple criteria in the same or different ranges.

The difference between COUNTIF and COUNTIFS is that COUNTIF is designed for counting cells with a single condition in one range, whereas COUNTIFS can evaluate different criteria in the same or different ranges.

When doing financial analysis, COUNTIF helps in doing a quick analysis. For example, we are given a list of tasks to be completed by a department, and the dates and priority of each task. In such a scenario, we can prepare a table showing the date, count of each task, and their priority using the COUNTIFS function.

Formula

=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)

The COUNTIFS function uses the following arguments:

  1. Criteria_range1 (required argument) – This is the first range that would be evaluated with the associated criteria.
  2. Criteria1 (required argument) – The conditions to be tested against the values. The criteria can be in the form of a number, expression, cell reference, or text that define which cells shall be counted. For example, criteria can be expressed as 2, “>2,” A4, “Mangoes,” or “32.”
  3. Criteria_range2, criteria2, … (optional argument) – Additional ranges and their associated criteria. The function allows up to 127 range/criteria pairs.

The given criteria can be any of the following:

  1. It is a numeric value. It can be an integer, decimal, date, time, or logical value.
  2. A text string. It may include wildcards. Wildcards can be a ? (question mark) or an * (asterisk). A ? matches any single character, whereas, * matches any sequence of characters. If we wish to actually find the ? (question mark) or * (asterisk) character, we need to type the ~ symbol before this character in our search.

How to use the COUNTIFS Function?

As a worksheet function, the COUNTIFS function can be entered as part of a formula in a cell of a worksheet.

To understand the uses of the function, let’s consider a few examples:

Example 1

Let’s assume we are given the following data:

COUNTIFS Function (1)

We want to get a count of items that are in stock (value in column C is greater than 0) but remain unsold (value is column D is equal to 0).

COUNTIFS Function (2)

Here, as we can see, it’s only Brown Bread where no stock is sold. The result we get is:

COUNTIFS Function (3)

Example 2

Let’s create count by month. For that, we need to use two functions – the COUNTIFS function and the EDATE function with two criteria.

Suppose we are given the following data:

COUNTIFS Function (4)

The list of issues is in Column B. Each issue includes a date (column C) and priority (column D).

Starting in cell B15, we prepared a summary table that shows a total count per day and a total count per day per priority.

COUNTIFS Function (5)

The first column of the summary table is a date. With the actual dates in column C, we can easily construct the criteria we need using the date itself and a second date created with the EDATE function.

The formula used here is:

COUNTIFS Function (6)

The formula generates the correct count for each date. For priorities, we used the formula below:

COUNTIFS Function (7)

The formula returns a count by date but broken down by priority, which is picked up directly from row 6.

The end result is the number of tasks to be done in terms of priority-wise:

COUNTIFS Function (8)

Some notes about the COUNTIFS Function:

  1. COUNTIFS is available from MS Excel 2000.
  2. #VALUE! error – Occurs when:
    • The given criteria_range arrays are not equal in length.
    • The supplied criteria arguments are text strings that are greater than 255 characters long.
  3. Each additional range should include the same number of rows and columns as the criteria_range1 argument, although it is necessary that they aren’t adjacent to each other.

Click here to download the sample Excel file

Additional Resources

Thanks for reading CFI’s guide to important Excel functions! By taking the time to learn and master these functions, you’ll significantly speed up your financial analysis. To learn more, check out these additional CFI resources:

Article Sources

  1. COUNTIFS Function
COUNTIFS Function (2024)
Top Articles
Coinsbee
Gross Profit vs Net Profit – How are they different | Zoho Books
Prot Pally Wrath Pre Patch
Oralbproshop
Dtm Urban Dictionary
1v1 Lol | Play Unblocked Games on Ubg4all
Wavmonopoly Reverb Calculator
Woche der Wiederbelebung: Ob man überlebt, hängt auch vom Ort ab
Western Caribbean From Miami,FL Carnival Horizon 2024-11-03 - Vision Cruise
Find A Red Cross Blood Drive
Amanda Wants A Vacation In Mexico In Spanish
Bmp 202 Blue Round Pill
Wakegov Property
Text Dollar To 58046
Devotion Showtimes Near Xscape Theatres Blankenbaker 16
Dexter Gomovies
Family Security Credit Union Gardendale
Sevierville, Tennessee: Idyllisches Reiseziel in den Great Smoky Mountains
855-409-4227
Magicseaweed Jacksonville Fl
Save Time and Money: Uncovering the Closest Family Dollar Store to Your Location
Math Nation Algebra 2 Practice Book Answer Key
Vmgma Patient Portal
Ll Flooring Locations
Oklahoma Craigslist Pets
R&J Travel And Tours Calendar
Rhiel Funeral Durand
norfolk gigs - craigslist
Ron Martin Realty Cam
10 War Movies That Angered Military Experts and Veterans
The Best Transmission Cooler [Buying Guide]
Nezuko Breeding
[PDF] fmj 1900 02 - Free Download PDF
Holiday Hours - Home Grown Apothecary
Games Like Mythic Manor
Kourend & Kebos Diary | OSRS Toolkit
Sierra At Tahoe Season Pass Costco
Mature Juggs
Frequently Asked Questions
Hamptonfuneralnc Obituaries
Strip Clubs In Bowling Green
Craigs List Jonesboro Ar
Terrier Hockey Blog
e-Tel, LLC - Paducah, KY
Facility Scheduler Hca North Florida
Ups Printing Services
Maewing Saddle Command
Half Sleeve Hood Forearm Tattoos
Log in or sign up to view
Cdimeters
Craigslist Cars Lima Ohio
Latest Posts
Article information

Author: Aracelis Kilback

Last Updated:

Views: 6272

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.