PC Review


Reply
Thread Tools Rate Thread

Count Uniques with a Couple Conditions

 
 
ryguy7272
Guest
Posts: n/a
 
      26th Feb 2009
I am trying to match names (with many duplicates) in a sheet2, with a list of
names (no duplicates) in a Summary Sheet. Then for each name, count unique
numbers in columnG, of sheet2 ONLY IF, the dollar value in columnV is >0.

This is my function
=SUMPRODUCT((sheet2!$C$2:$C$678=C56)/COUNTIF(sheet2!$G$2:$G$678,sheet2!$G$2:$G$678&"")*sheet2!$V$2:$V$678>0)

The logic seems right to me, but I’m getting all zeros and I know some of
the conditions that I mentioned above are true so I should not have all zeros.

Any ideas?

Thanks,
Ryan---


--
RyGuy
 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      26th Feb 2009
This is getting close, but it counts only uniques in ColumnG, not the uniques
in ColumnG which have a value in the ColumnV of the same row that is grteater
than 0:
=SUMPRODUCT(--(sheet2!$C$2:$C$678=C58)*(1/COUNTIF(sheet2!$G$2:$G$678,sheet2!$G$2:$G$678)*sheet2!$V$2:$V$678>0))


--
RyGuy


"ryguy7272" wrote:

> I am trying to match names (with many duplicates) in a sheet2, with a list of
> names (no duplicates) in a Summary Sheet. Then for each name, count unique
> numbers in columnG, of sheet2 ONLY IF, the dollar value in columnV is >0.
>
> This is my function:
> =SUMPRODUCT((sheet2!$C$2:$C$678=C56)/COUNTIF(sheet2!$G$2:$G$678,sheet2!$G$2:$G$678&"")*sheet2!$V$2:$V$678>0)
>
> The logic seems right to me, but I’m getting all zeros and I know some of
> the conditions that I mentioned above are true so I should not have all zeros.
>
> Any ideas?
>
> Thanks,
> Ryan---
>
>
> --
> RyGuy

 
Reply With Quote
 
ryguy7272
Guest
Posts: n/a
 
      26th Feb 2009
Finally got it
=COUNT(1/FREQUENCY(IF(sheet2!$C$2:$C$1000=C56,sheet2!$G$2:$G$1000),sheet2!$G$2:$G$1000))-(SUMPRODUCT((sheet2!$C$2:$C$1000=C56)*(sheet2!$V$2:$V$1000<=0)))


--
RyGuy


"ryguy7272" wrote:

> This is getting close, but it counts only uniques in ColumnG, not the uniques
> in ColumnG which have a value in the ColumnV of the same row that is grteater
> than 0:
> =SUMPRODUCT(--(sheet2!$C$2:$C$678=C58)*(1/COUNTIF(sheet2!$G$2:$G$678,sheet2!$G$2:$G$678)*sheet2!$V$2:$V$678>0))
>
>
> --
> RyGuy
>
>
> "ryguy7272" wrote:
>
> > I am trying to match names (with many duplicates) in a sheet2, with a list of
> > names (no duplicates) in a Summary Sheet. Then for each name, count unique
> > numbers in columnG, of sheet2 ONLY IF, the dollar value in columnV is >0.
> >
> > This is my function:
> > =SUMPRODUCT((sheet2!$C$2:$C$678=C56)/COUNTIF(sheet2!$G$2:$G$678,sheet2!$G$2:$G$678&"")*sheet2!$V$2:$V$678>0)
> >
> > The logic seems right to me, but I’m getting all zeros and I know some of
> > the conditions that I mentioned above are true so I should not have all zeros.
> >
> > Any ideas?
> >
> > Thanks,
> > Ryan---
> >
> >
> > --
> > RyGuy

 
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
count uniques anomaly T. Valko Microsoft Excel Worksheet Functions 4 6th Jul 2008 05:54 AM
Count Uniques EXCLUDING Some Entries =?Utf-8?B?UGFpZ2U=?= Microsoft Excel Worksheet Functions 3 3rd Oct 2007 11:34 PM
Count uniques with other fields in the query =?Utf-8?B?RGVlZHM=?= Microsoft Access Queries 1 19th Apr 2006 09:53 PM
How to count uniques of a SUMPRODUCT subset? =?Utf-8?B?S2VMZWU=?= Microsoft Excel Worksheet Functions 2 9th Dec 2005 01:25 PM
Count col C based on uniques in col A Don Anderson Microsoft Excel Worksheet Functions 1 24th Nov 2003 06:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:37 PM.