Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Count unique text

Is there a function, or good way,to count unique text in a list? For
example, I would like an answer of 3 from the text in the list below:

Dog
Cat
Dog
Bird

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default Count unique text

Assume your range is A1:A10:

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

--
Regards,
Dave


"shzdug" wrote:

Is there a function, or good way,to count unique text in a list? For
example, I would like an answer of 3 from the text in the list below:

Dog
Cat
Dog
Bird

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Count unique text

These will work too:
=SUM(IF(FREQUENCY(MATCH(A2:A11,A2:A11,0),MATCH(A2: A11,A2:A11,0))0,1))

=SUMPRODUCT((A2:A11<"")/(COUNTIF(A2:A11,A2:A11&"")))

=SUMPRODUCT((A2:A11<"")/(COUNTIF(A2:A11,A2:A11)+(A2:A11="")))

=SUMPRODUCT(--(A2:A11<""),1/COUNTIF(A2:A11,A2:A11&""))

=SUM(IF(FREQUENCY(IF(LEN(A2:A11)0,MATCH(A2:A11,A2 :A11,0),""),IF(LEN(A2:A11)0,MATCH(A2:A11,A2:A11,0 ),""))0,1))
(Note: This is a CSE Function)

Adjust all ranges to suit...

--
RyGuy


"David Billigmeier" wrote:

Assume your range is A1:A10:

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

--
Regards,
Dave


"shzdug" wrote:

Is there a function, or good way,to count unique text in a list? For
example, I would like an answer of 3 from the text in the list below:

Dog
Cat
Dog
Bird

Thanks!

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
"COUNTU" function in Excel to count unique entries in a range WayneL Excel Worksheet Functions 20 September 19th 08 03:50 AM
count and display unique values joe Excel Worksheet Functions 2 December 19th 05 01:11 AM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM


All times are GMT +1. The time now is 12:30 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"