Forum Discussion

david_odolofin's avatar
david_odolofin
Copper Contributor
Aug 12, 2021
Solved

How do I count the occurrence of unique values?

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.

  • HansVogelaar's avatar
    HansVogelaar
    Aug 12, 2021

    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.

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.

      • HansVogelaar's avatar
        HansVogelaar
        MVP

        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.

Resources