Count occurrences of values

21,771

For the sake of an answer rather than comments, copy column (say A) to B (say) and for B only Data > Data Tools – Remove Duplicates then in C2 enter:

=COUNTIF(A:A,B2)  

and copy down as required

OR (preferred option)

use a PivotTable as @Tim:

SO13151320 example

Share:
21,771
sagacious
Author by

sagacious

Updated on July 05, 2022

Comments

  • sagacious
    sagacious almost 2 years

    I have a column of text values with repeated values. I want to create a new column of unique values (no repeats) and a column with the frequency of each of those values.

    What's the easiest way to do that? Efficiency isn't much of a concern as it's under 10,000 rows.