Count occurrences of values

sagacious picture sagacious · Oct 31, 2012 · Viewed 21k times · Source

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.

Answer

pnuts picture pnuts · Mar 11, 2013

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