# Google Sheets COUNTIFS Function: Syntax, Examples & Tips

- URL: https://betteranalyst.com/google-sheets/countifs-function
- Author: Better Analyst

Formula Bot is now Better Analyst—same account, more powerful analysis.Formula Bot is now Better Analyst—same account and workflows, with more powerful analysis, dashboards, and automation.

[Learn what changed](https://betteranalyst.com/formula-bot-is-now-better-analyst)

The COUNTIFS function counts the number of cells that meet multiple criteria across different ranges in a Google Sheets spreadsheet.

```
COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, ...])
```

Generate FormulaExplain Formula

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Describe the COUNTIFS you need in plain EnglishGenerate Formula

## 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:

| 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.

## COUNTIFS Formula

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.

## Result of the Formula

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

```
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.

[Create Free Account](https://betteranalyst.com/signup)[Try Formula Generator](https://betteranalyst.com/excel-ai)

## Google Sheets how-to guides

- [How To Make A Line Graph In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-line-graph-in-google-sheets)
- [How To Make A Pie Chart In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-pie-chart-in-google-sheets)
- [How To Make A Table In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-table-in-google-sheets)
- [How To Merge Cells In Google Sheets](https://betteranalyst.com/google-sheets/how-to-merge-cells-in-google-sheets)
- [How To Multiply In Google Sheets](https://betteranalyst.com/google-sheets/how-to-multiply-in-google-sheets)
- [How To Password Protect An Google Sheets File](https://betteranalyst.com/google-sheets/how-to-password-protect-an-google-sheets-file)
- [How To Remove Blank Rows In Google Sheets](https://betteranalyst.com/google-sheets/how-to-remove-blank-rows-in-google-sheets)
- [How To Remove Duplicates In Google Sheets](https://betteranalyst.com/google-sheets/how-to-remove-duplicates-in-google-sheets)

## 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.](https://chatgpt.com/?prompt=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
2. [02ClaudeOpen the same research prompt in Claude.](https://claude.ai/new?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
3. [03PerplexityResearch the comparison with linked web sources.](https://www.perplexity.ai/search?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)

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