#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bruce
 
Posts: n/a
Default Countif unique

How do i count unique values in my data?

Eg A1:A5
Red
Blue
Yellow
Blue
Red

=3

Bruce
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Countif unique

=SUMPRODUCT(1/COUNTIF(A1:A5,A1:A5))
--
Gary''s Student


"Bruce" wrote:

How do i count unique values in my data?

Eg A1:A5
Red
Blue
Yellow
Blue
Red

=3

Bruce

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bruce
 
Posts: n/a
Default Countif unique

Thank Gary's Student.

What is I add the following criteria....With this formula it returns #div/0
if there are blanks.

Reason is my actual data has a dynamic range refreshed by MSQuery to a DB. I
want to set the range in the count to A1:A1000 to cover the maximun records I
except, however there may only be 300 or so actual records to count....

Bruce

"Gary''s Student" wrote:

=SUMPRODUCT(1/COUNTIF(A1:A5,A1:A5))
--
Gary''s Student


"Bruce" wrote:

How do i count unique values in my data?

Eg A1:A5
Red
Blue
Yellow
Blue
Red

=3

Bruce

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Countif unique

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

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Bruce" wrote in message
...
Thank Gary's Student.

What is I add the following criteria....With this formula it returns

#div/0
if there are blanks.

Reason is my actual data has a dynamic range refreshed by MSQuery to a DB.

I
want to set the range in the count to A1:A1000 to cover the maximun

records I
except, however there may only be 300 or so actual records to count....

Bruce

"Gary''s Student" wrote:

=SUMPRODUCT(1/COUNTIF(A1:A5,A1:A5))
--
Gary''s Student


"Bruce" wrote:

How do i count unique values in my data?

Eg A1:A5
Red
Blue
Yellow
Blue
Red

=3

Bruce



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
code not unique find latest date Barbara Wiseman Excel Discussion (Misc queries) 3 December 11th 05 08:50 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Count Unique Values annie Excel Worksheet Functions 1 June 9th 05 07:19 AM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 06:07 AM.

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

About Us

"It's about Microsoft Excel"