COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, ...])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
criteria_range1:
The range of cells that you want to evaluate for the first specified criterion.
criterion1:
The condition or value that you want to count occurrences of within the specified criteria_range1. This can be a number, text, expression, or a cell reference that defines which cells will be counted.
criteria_range2:
The range of cells that you want to evaluate for the second specified criterion. This is optional and can be included for additional criteria.
criterion2:
The condition or value that you want to count occurrences of within the specified criteria_range2. This is optional and can be included for additional criteria.
The COUNTIFS function in Google Sheets is a powerful tool used to count the number of cells that meet multiple criteria across one or more ranges. It allows users to apply multiple conditions to their data, making it easier to analyze and summarize information based on specific requirements.
In simpler terms, COUNTIFS helps you count how many times certain conditions are met in your dataset, providing valuable insights for decision-making.
Imagine you are managing a sales record stored in a Google Sheets spreadsheet:
| SaleID | ProductName | Quantity | Region |
|---|---|---|---|
| 1 | Widget A | 3 | North |
| 2 | Widget B | 5 | South |
| 3 | Widget A | 2 | North |
| 4 | Widget C | 4 | East |
| 5 | Widget B | 1 | South |
You want to count how many times Widget A was sold in the North region.
To achieve this, you would use the COUNTIFS function as follows:
=COUNTIFS(Sales!B:B, "Widget A", Sales!D:D, "North")In this formula:
Sales!B:B is the range where the function will look for the ProductName."Widget A" is the criteria for the ProductName.Sales!D:D is the range where the function will look for the Region."North" is the criteria for the Region.When you apply the COUNTIFS formula to the Sales Table, the output would be:
2This indicates that Widget A was sold 2 times in the North region.
COUNTIFS is beneficial because it allows for complex data analysis by enabling users to apply multiple criteria simultaneously. This makes it easier to derive insights from large datasets without the need for manual counting or filtering. Additionally, it helps in identifying trends and patterns based on specific conditions.
COUNTIFS is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a sales data table where Column A lists product categories and Column B records sales amounts. Use COUNTIFS to count how many times sales exceeded $500 for the "Electronics" category. This helps identify high-performing product segments efficiently.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.