Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a excel file with entries that appear multiple times. Example:

  • A
  • A
  • A
  • B
  • B
  • C
  • C

How can I change this to a form that looks like this:

  • A 3
  • B 2
  • C 2
share|improve this question
2  
Possible duplicate of MS Excel: How count occurence of item in a list? – Excellll Nov 12 '15 at 21:54

You can do this easily with a pivot table. Here's Microsoft's documentation about pivot tables.

share|improve this answer

So long as you know the name of each item in the list, you can automate it.

     A    B           C

1    A    A    =COUNTIF(A:A, B1)
2    A    B    =COUNTIF(A:A, B2)
3    A    C    =COUNTIF(A:A, B3)
4    B    D    =COUNTIF(A:A, B4)
5    B
6    C
7    C

Will show:

     A    B    C

1    A    A    3
2    A    B    2
3    A    C    2
4    B    D    0
5    B
6    C
7    C
share|improve this answer
    
+1 Excel's Advanced Filter can help the OP quickly extract unique values from a range like so: i.imgur.com/Q8plB.png – Kaze Aug 29 '11 at 6:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.