The new forums will be named Coin Return (based on the most recent
vote)! You can check on the status and timeline of the transition to the new forums
here.
The Guiding Principles and New Rules
document is now in effect.
Excel Question - Counting Unique entries in a column
Hey, I have a long list of entries in a column. What I need to find out is how many of each entry I have and what is the entry.
So for example...
A
A
A
B
B
C
I would like a formula that would tell me that i have
A = 3
B = 2
C = 1
I could use the Countif formula for each instance, but i am hoping there is a way to streamline the process as there are many dozen different unique entries and i don't want to fill out dozens of countif formulas.
Is this possible?
Thanks in advance for your help!
0
Posts
1) Copy the list to a separate column
2) Remove duplicates in that column (in the Data tab)
3) You should now have a list of all the possible options in the list, but only showing up once. For sake of argument, let's say they're in column B, and the original list is in column A.
4) In cell C1, put the formula =COUNTIF($A$2:$A$250,B1). This will tell you how many times the value in B1 turns up in the list (assuming a list of 250 values).
5) Do the corner drag thing to put that formula next to each cell in column B.
6) Tally up the totals to make sure I haven't missed anything.
Hope that helps, but I'm sure somebody else will come along with a more elegant example which I will then steal for my own reports.
If you haven't dabbled in pivot tables before, it's well worth doing. Very powerful stuff. It's one of those things that can be a little intimidating at first glance, but is not at all hard to actually do.
=COUNTIF(I5:I34,I5)
where I5:I34 is the column you are looking for occurences off a number,
3 =COUNTIF(I5:I34,I5)
4 1
5 1
6 2
6 1
8 1
7 1
33235 1
14646 1
666 2
666 1
then just sort on anything >1
hmm that gets the job done, but that is pretty clunky heheh
GIS is evil
It literally took me more time to take a screenshot and upload it to imgur than it did for me to create the pivot table.
(Skip to 0:05)
http://youtu.be/w5DHU8SwYJ0
Thanks again for the help, we data crunchers gotta stick together!
GIS is evil
This scene is a running joke in my office Pivot tables are ruined forever.
This also works if you don't want/can't use pivot tables. If you have blank cells you can use =SUMPRODUCT((A1:A10<>"")/COUNTIF(A1:A10,A1:A10&"")) to ignore blank cells.
Edit: Fixed formula error, but it looks like this isn't quite what you were looking for, sorry!