Arrow left
Back to product guides
Google Sheets Formulas

How to Use COUNTIFS Function in Google Sheets

In this article, you will learn how to utilize the COUNTIFS formula in Google Sheets. This formula is beneficial when you want to figure out the number of cells (or values) that satisfy multiple conditions simultaneously. For example, it is helpful when you need to know the number of items that meet criteria, such as ones sold in a particular lot size by a specific salesperson on a specific date, out of a significantly long sales record.

How to use COUNTIFS formula in Google Sheets

  1. Type “=COUNTIFS(” or go to “Insert” in the menu bar ➝ “Function” ➝ ”Math” ➝ ”COUNTIFS”
  2. Select a range for which you apply the first criterion, insert a comma, and input a condition by cell reference or manual input.
  3. Repeat the second process above until you incorporate all criteria you want to include
  4. Press the “Enter” key
How to insert the COUNTIFS function from the menu bar in Google Sheets

The generic formula is as follows:

=COUNTIFS(criteria_range1, criterion1, [criteria_range2, …], [criterion2, …])

Criterian_range1: This is a set of data to which you want to apply the first criterion.

Criterion1: This is the first standard.

Let’s see a few examples below. Imagine that you are in charge of sales and you need to know the number of deals that meet particular criteria based on a deal list (Sales Record) shown in the picture below. 

How to use the COUNTIFS function in Google Sheets with examples

(i) Deals closed by David on Jan. 1st, 2022

In this example, we assume the criteria are Sales Person - “David” and Record Date - “1/1/2022”. As the first condition is a person, the first range should be found in thecolumn C that contains the information about this Sales Person. The second condition is Record Date, so the second range should be a part of the column E that has the information about the necessary Record Date. In the formula in the screenshot above, both of them are typed manually.

(ii) Deals closed by Bryan in the lot size of 10

The two requirements in this example are Sales Person - “Bryan” and Lot Size - “10”. The first range should be found in the column C again. This time, the column D should be the second filed as the second condition is looking for the Lot Size. In this sample formula, both conditions are input by cell references rather than manually as you can see in the screenshot. A corresponding pair of cell reference and referred cell is surrounded by the same color boxes. (e.g., Bryan and $C$19 in the formula).

(iii) Deals closed by Anna in the lot size of 100 on Mar. 1st 2022

The last sample formula contains three ranges and criteria, Sales Person - “Anna”, Lot Size - “100”, and Record Date - “3/1/2022”. All conditions are incorporated with cell references as in the previous example. You can see which part of the formula corresponds to which condition in the picture above.

If you have only one criterion you want to apply to a data set, you can consider using the COUNTIF function. Check this article to learn how to use the COUNTIF formula in Google Sheets.

What are the other formulas related to mathematics and statistics

If you don’t get the solution you are looking for in this article, or you have further questions related to mathematics or statistics, you may find the answers in the following articles.

Go to the following articles to learn basic formulas in Google Sheets.

How to Do Math in Google Sheets for Beginners

ADD Function in Google Sheets: Explained

MINUS Function in Google Sheets: Explained

DIVIDE Function in Google Sheets: Explained

MULTIPLY Function in Google Sheets: Explained

PRODUCT Function in Google Sheets: Explained

How to Use SUM Function in Google Sheets

How to Use SUMPRODUCT Formula in Google Sheets

How to Use MAX Function in Google Sheets

How to Use MIN Function in Google Sheets

How to Use MEDIAN Function in Google Sheets

How to Use AVERAGE Formula in Google Sheets

How to Use MODE Function in Google Sheets

MOD Function in Google Sheets: Explained

Navigate to the pages below to learn how to sum, count, or average numbers with a condition or multiple conditions. 

How to Use SUMIF Function in Google Sheets - sum up the numbers that meet a criterion

SUMIFS Function in Google Sheets: Explained - sum up the numbers that meet multiple criteria

How to Use COUNTIF Function in Google Sheets - count the number of cells that meet a requirement

AVERAGEIF Function in Google Sheets: Explained - average the figures that meet a standard

AVERAGEIFS Function in Google Sheets: Explained - average the figures that meet multiple standards

AVERAGE.WEIGHTED Function in Google Sheets: Explained - use this formula to calculate the weighted average

MAXIFS Function in Google Sheets: Explained - seek for the maximum value that meets specific criteria

MINIFS Function in Google Sheets: Explained - seek for the minimum value that meets specific criteria

Visit the following post if you are interested in learning how to count the number of specific cells.

COUNT Function in Google Sheets: Explained - count the number of cells containing numeric values (except for blank ones)

COUNTA Function in Google Sheets: Explained - count the number of cells incorporating all types of values containing text and date, except for blank ones

COUNTBLANK Function in Google Sheets: Explained - count the number of blank cells

COUNTUNIQUE Function in Google Sheets: Explained - count the number of unique cells

You can learn about other Google Sheets formulas and tips that are not mentioned here on this page: LiveFlow‘s How to Guides

Analyze your live financial data in a snap

Are you learning this formula to visualize financial data, build a financial model, or conduct financial analysis? In that case, LiveFlow may help you automate manual workflows and update numbers in real-time. You can access various financial templates on our website, from the simple Income Statement to Multi-Currency Consolidated Financial Statement. You can also customize these templates as you want without breaking the automated data inflow.

To learn more about LiveFlow, book a demo.

Automate any custom financial dashboard in Google Sheets with LiveFlow

Learn how to do this step-by-step in the video below 👇

Do you need personal help?

Our team of real people are here to help you any time between 9am and 10pm GMT.
Check Icon
Email us at: founders@liveflow.io
Check Icon
Call us at +1 (415) 650-1711