Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
annie
 
Posts: n/a
Default Count Unique Values

I want to count the unique values, but no need to specify a certain
value.Please see the columns below:
c1 c2
a a
b b
a a
a a
a a
b c

There are 2 unique values in this c1 (a,b),so i want the result to be 2.In
c2,the result should be 3,because there are 3 unique values(a,b,c). I need a
formula which can count how many unique values appear in a column. Since I
don't know which value will appear in the column, I can not specify the exact
value neither use the COUNTIF formula.
Thanks for your help:)
  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

annie wrote:
I want to count the unique values, but no need to specify a certain
value.Please see the columns below:
c1 c2
a a
b b
a a
a a
a a
b c

There are 2 unique values in this c1 (a,b),so i want the result to be 2.In
c2,the result should be 3,because there are 3 unique values(a,b,c). I need a
formula which can count how many unique values appear in a column. Since I
don't know which value will appear in the column, I can not specify the exact
value neither use the COUNTIF formula.
Thanks for your help:)


=SUMPRODUCT((Range<"")/COUNTIF(Range,Range&""))

If you have the morefunc.xll add-in...

=COUNTDIFF(Range,FALSE,"")

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 how many different text values in an array. OVERLOAD Excel Worksheet Functions 3 April 14th 05 04:12 PM
Count Unique in Pivot Table Nelson Excel Discussion (Misc queries) 6 April 10th 05 10:05 PM
Pivot Table Unique Count bsantona Excel Worksheet Functions 1 February 11th 05 09:27 PM
Count number of Unique values Alan Excel Worksheet Functions 4 January 6th 05 08:05 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


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