COUNTUNIQUE(value1, [value2, ...])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
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.
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.
Imagine you are tracking customer orders in a Google Sheets document:
| 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.
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.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.
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.
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!
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.
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.