Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default count different instances in a list

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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 419
Default count different instances in a list

mmatz,

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

=countif(A1:A5,"bbb")

HTH,

Conan




"mmatz" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default count different instances in a list

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
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"mmatz" wrote in message
...
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?



  #4   Report Post  
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by mmatz View Post
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?
Try:

=SUMPRODUCT((A1:A10<"")/COUNTIF(A1:A10,A1:A10&""))

where A1:A10 contain your data to count.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Instances of value in two columns KN Excel Worksheet Functions 2 October 24th 07 03:54 AM
Count the number of Instances louiscourtney Excel Discussion (Misc queries) 4 July 12th 07 09:16 PM
In a set of dates, can you count the number of Jan '07 instances? Linda Woodfield Excel Worksheet Functions 4 June 22nd 07 07:07 PM
Formula to use to count instances of in Excel Bill Excel Worksheet Functions 5 December 22nd 05 02:46 PM
Count Instances Ken Excel Discussion (Misc queries) 2 April 2nd 05 12:41 AM


All times are GMT +1. The time now is 02:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"