Google Sheets COUNTIFS Function: Syntax, Examples & Tips

The COUNTIFS function counts the number of cells that meet multiple criteria across different ranges in a Google Sheets spreadsheet.
Google Sheets
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.

On this page
  1. Parameters
  2. What is a COUNTIFS?
  3. A Practical Example
  4. COUNTIFS Formula
  5. Result of the Formula
  6. Why Use COUNTIFS?
  7. Key Takeaways:
  8. Example use case

Parameters

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.

What is a COUNTIFS?

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.

A Practical Example

Imagine you are managing a sales record stored in a Google Sheets spreadsheet:

Sales Table:

SaleIDProductNameQuantityRegion
1Widget A3North
2Widget B5South
3Widget A2North
4Widget C4East
5Widget B1South

You want to count how many times Widget A was sold in the North region.

COUNTIFS Formula

To achieve this, you would use the COUNTIFS function as follows:

Google Sheets
=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.

Result of the Formula

When you apply the COUNTIFS formula to the Sales Table, the output would be:

Google Sheets
2

This indicates that Widget A was sold 2 times in the North region.

Why Use COUNTIFS?

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.

Key Takeaways:

  • COUNTIFS: A Google Sheets function that counts the number of cells meeting multiple criteria across one or more ranges.
  • Multiple Criteria: Allows users to specify various conditions, making it suitable for detailed data analysis.
  • Data Insights: Helps in identifying trends and patterns in datasets, enhancing decision-making capabilities.
  • Common Use Cases: Ideal for sales tracking, inventory management, and any scenario where conditional counting is necessary.

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!

Example use case

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.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.