# Google Sheets COUNTUNIQUE Function: Syntax, Examples & Tips

- URL: https://betteranalyst.com/google-sheets/countunique-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 COUNTUNIQUE function counts the number of distinct values in a specified range, ignoring duplicates.

```
COUNTUNIQUE(value1, [value2, ...])
```

Generate FormulaExplain Formula

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

Describe the COUNTUNIQUE you need in plain EnglishGenerate Formula

## Parameters

**`value1`**:\
The first value or range of values that you want to count as unique. This is a required parameter.

**`value2`**:\
Additional values or ranges of values that you want to include in the count of unique entries. This is an optional parameter and can be repeated for more values.

## What is COUNTUNIQUE?

The *COUNTUNIQUE* function in Google Sheets is a useful tool that counts the number of unique values in a specified range. This function is particularly helpful when you want to determine how many distinct entries exist in a dataset, such as a list of names, products, or any other category where duplicates may occur.

In simpler terms, COUNTUNIQUE allows you to quickly find out how many different items are present in a set of data.

## A Practical Example

Imagine you are tracking customer orders in a Google Sheets document:

### Orders Table:

| OrderID | CustomerName | Product |
| - | - | - |
| 1 | Alice | Widget A |
| 2 | Bob | Widget B |
| 3 | Alice | Widget C |
| 4 | Charlie | Widget A |
| 5 | Bob | Widget A |

You want to find out how many unique customers placed orders.

## COUNTUNIQUE Formula

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

```
=COUNTUNIQUE(B2:B6)
```

In this formula:

- `B2:B6` is the range containing the CustomerName entries from the Orders Table.

## Result of the Formula

When you apply the COUNTUNIQUE formula to the Orders Table, the output would be:

| Unique Customers |
| - |
| 3 |

This indicates that there are three unique customers (Alice, Bob, and Charlie) who placed orders.

## Why Use COUNTUNIQUE?

COUNTUNIQUE is beneficial because it simplifies the process of identifying distinct values in a dataset. It eliminates the need for manual counting or complex formulas to filter out duplicates. This function is particularly useful in data analysis, reporting, and any scenario where understanding the diversity of entries is important.

## Key Takeaways:

- **COUNTUNIQUE**: A Google Sheets function that counts the number of unique values in a specified range.
- **Simplicity**: Provides a straightforward way to determine distinct entries without complex calculations.
- **Common Use Cases**: Ideal for customer tracking, inventory management, survey responses, and any situation where uniqueness is a factor.

COUNTUNIQUE 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 list of customer orders in Column A, where some customers may have placed multiple orders. By using the COUNTUNIQUE formula, you can quickly determine the total number of unique customers who have placed orders, helping you analyze customer engagement.

## 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 Strikethrough In Google Sheets](https://betteranalyst.com/google-sheets/how-to-strikethrough-in-google-sheets)
- [How To Subtract In Google Sheets](https://betteranalyst.com/google-sheets/how-to-subtract-in-google-sheets)
- [How To Transpose Data In Google Sheets](https://betteranalyst.com/google-sheets/how-to-transpose-data-in-google-sheets)
- [How To Unhide Columns In Google Sheets](https://betteranalyst.com/google-sheets/how-to-unhide-all-columns-in-google-sheets)
- [How To Unhide Rows In Google Sheets](https://betteranalyst.com/google-sheets/how-to-unhide-all-rows-in-google-sheets)
- [How To Unprotect Google Sheets](https://betteranalyst.com/google-sheets/how-to-unprotect-google-sheets)
- [How To Wrap Text In Google Sheets](https://betteranalyst.com/google-sheets/how-to-wrap-text-in-google-sheets)
- [Google Sheets Conditional Formatting](https://betteranalyst.com/google-sheets/google-sheets-conditional-formatting)

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