Intro
Master the Countifs Google Sheets formula for multiple criteria, including range, criteria, and summing, to efficiently analyze data with conditional counting and filtering techniques.
The COUNTIFS function in Google Sheets is a powerful tool that allows you to count the number of cells that meet multiple criteria. This function is particularly useful when you need to analyze data based on several conditions. In this article, we will delve into the details of how to use the COUNTIFS function with multiple criteria, providing examples and explanations to help you master this skill.
To begin with, let's understand the basic syntax of the COUNTIFS function. The general formula is COUNTIFS(range1, criterion1, [range2, criterion2,...])
. Here, range1
and criterion1
are required, while range2
and criterion2
are optional and can be repeated to include more criteria. The function counts the number of cells in range1
that meet criterion1
, and if specified, also meet criterion2
in range2
, and so on.
Basic Usage of COUNTIFS

Before diving into multiple criteria, let's look at a simple example. Suppose you have a list of sales data and you want to count how many sales were made in a specific region. If your data is in the range A1:B100 (A for region and B for sales), and you want to count sales in the "North" region, your formula would be COUNTIFS(A1:A100, "North")
.
Using Multiple Criteria with COUNTIFS

Now, let's expand on this by adding another criterion. Imagine you not only want to count sales in the "North" region but also sales that exceeded $1000. If your sales amounts are in column B, your formula would look like this: COUNTIFS(A1:A100, "North", B1:B100, ">1000")
. This formula counts the cells in the range A1:A100 that contain "North" and the corresponding cells in B1:B100 that are greater than 1000.
Example with Real Data
For a clearer understanding, let's consider a dataset:Region | Sales |
---|---|
North | 500 |
South | 1200 |
North | 1500 |
East | 800 |
North | 2000 |
If you apply the formula COUNTIFS(A1:A5, "North", B1:B5, ">1000")
, the result would be 2, because there are two sales in the "North" region that exceeded $1000.
Advanced COUNTIFS Techniques

One of the powerful features of COUNTIFS is its ability to handle arrays and wildcards. For instance, if you want to count sales in either the "North" or "South" regions that exceeded $1000, you can use an array formula like this: COUNTIFS(A1:A100, {"North", "South"}, B1:B100, ">1000")
. However, this specific example doesn't directly work as intended with COUNTIFS because it's designed to work with a single range/criterion pair. Instead, you might use the SUM(COUNTIFS())
approach or filter functions for more complex logic.
For using wildcards, if you're looking for sales in regions that start with "N", you can use COUNTIFS(A1:A100, "N*")
.
Practical Applications
- **Sales Analysis:** Counting sales by region, product, or salesperson. - **Inventory Management:** Counting stock levels by product category, location, or supplier. - **HR Management:** Counting employees by department, job role, or salary range.Common Errors and Troubleshooting

When working with COUNTIFS, common issues include incorrect range specifications, typos in criteria, or misunderstanding how the function handles multiple criteria. Always ensure your ranges match the criteria you're applying and that your criteria are correctly formatted (e.g., using quotes for text criteria).
Best Practices
- Use absolute references for ranges when the formula is to be copied down or across. - Test each criterion separately to ensure it's working as expected before combining them. - Consider using named ranges for better readability and easier maintenance of your formulas.Gallery of COUNTIFS Examples
COUNTIFS Image Gallery










What is the main purpose of the COUNTIFS function in Google Sheets?
+The main purpose of the COUNTIFS function is to count the number of cells that meet multiple criteria across different ranges.
How do you use COUNTIFS with multiple criteria?
+You use COUNTIFS with multiple criteria by specifying additional range and criterion pairs, separated by commas, within the function.
Can COUNTIFS handle wildcards and arrays?
+Yes, COUNTIFS can handle wildcards (like "*" or "?") and, to some extent, arrays, though its array handling is more limited compared to other functions.
In conclusion, mastering the COUNTIFS function in Google Sheets can significantly enhance your data analysis capabilities. By understanding how to apply multiple criteria, use wildcards, and troubleshoot common errors, you can unlock more insights from your data. Whether you're analyzing sales trends, managing inventory, or optimizing HR processes, COUNTIFS is a versatile tool that can help. If you have more questions or would like to share your experiences with COUNTIFS, please don't hesitate to comment below. Your feedback and insights are invaluable in creating a community that learns and grows together.