count different instances in a list

M

mmatz

I have a list that has aaa, bbb, cccc, aaa, bbb and want to count the
different instances. So in this example it would be 3 because bbb is
repeated. Is there a formula that does this?
 
C

Conan Kelly

mmatz,

Assuming that your list is in cells A1:A5, if you put this formula in A7, it
should accomplish what you desire:

=countif(A1:A5,"bbb")

HTH,

Conan
 
B

Bernard Liengme

This one is an array formula and need to be committed with Shift+Ctrl+Enter
=SUM(1/COUNTIF(C1:C6,C1:C6))

This is committed with just Enter
=SUMPRODUCT(--(C1:C6<>""),1/COUNTIF(C1:C6,C1:C6&""))

Of course, change C1:C6 to fit your situation
best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Repeat Values in Column A, Break and Sum 2
Can I use vlookup to do this? 4
Automated report 1
countif in multi sheet 6
formula help 1
Option box question 1
Consolidate 2 Columns into 1 3
COUNT 1

Top