SOLVED

How do I count the occurrence of unique values?

New Contributor

How do I count the occurrence of unique values for over 1000cells in a column?

After getting the answers, is there a short cut for autocomplete without having to drag?

I've tried this, doesn't seem to work (  =COUNTIF($B$2:$B$3794,B2   ).  Help.

4 Replies

@david_odolofin

Which version of Excel/Office do you have? Excel in Microsoft 365 has a new function UNIQUE that will return a list of unique items in a range. COUNTA(UNIQUE(...)) can be used to count unique items.

@Hans Vogelaar Office 365( Excel version: 2006)

@david_odolofin 

Try

 

=COUNTA(UNIQUE($B$2:$B$3794))

best response confirmed by david_odolofin (New Contributor)
Solution

@david_odolofin 

Or, if you want to count the number of occurrences of each value, create a pivot table based on your column. Add the column to both the Rows area and the Values area.