PC Review


Reply
Thread Tools Rate Thread

Countif unique

 
 
=?Utf-8?B?QnJ1Y2U=?=
Guest
Posts: n/a
 
      1st Mar 2006
How do i count unique values in my data?

Eg A1:A5
Red
Blue
Yellow
Blue
Red

=3

Bruce
 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      1st Mar 2006
=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 With Quote
 
=?Utf-8?B?QnJ1Y2U=?=
Guest
Posts: n/a
 
      1st Mar 2006
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 With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      1st Mar 2006
=SUMPRODUCT((A1:A5<>"")/COUNTIF(A1:A5,A1:A5&""))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Bruce" <(E-Mail Removed)> wrote in message
news:2921A78E-E4E3-4269-B87E-(E-Mail Removed)...
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIF: unique names and values accross several columns. SW Microsoft Excel Worksheet Functions 2 5th Jul 2008 03:29 AM
Use countif to count unique values? bam Microsoft Excel Discussion 3 1st May 2007 06:26 AM
Countif unique item with multiple criteria sanshah01@yahoo.com Microsoft Excel Discussion 5 13th Jun 2006 06:04 PM
existing unique value formula help (index(match(countif))) jzgers@gmail.com Microsoft Excel Worksheet Functions 6 12th May 2006 09:35 PM
Unique Name COUNTIF Query SamuelT Microsoft Excel Discussion 2 2nd Feb 2006 10:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:03 PM.