How to Count Unique Values in Google Sheets
To count unique values in Google Sheets, you can use the UNIQUE
function along with the COUNTA
function. The UNIQUE
function returns the unique values in a range, and the COUNTA
function counts the number of non-empty cells in a range.
Here's how you can count unique values in Google Sheets:
- Open your Google Sheet.
- Click on an empty cell where you want to display the count of unique values.
- Type the formula
=COUNTA(UNIQUE(range))
, whererange
is the range of cells you want to count unique values from. - Press Enter.
The cell will now display the count of unique values in the specified range.
Example
Let's say we have the following data in column A:
A
---
Item 1
Item 2
Item 1
Item 3
Item 2
Item 4
Item 5
Item 3
To count the unique values in this data, follow these steps:
- Click on an empty cell, for example, B1.
- Type the formula
=COUNTA(UNIQUE(A1:A8))
, whereA1:A8
is the range containing the data. - Press Enter.
The cell B1 will now display the count of unique values in the range A1:A8, which is 5.
Did you find this useful?