Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default unique and conditional count

the following sumproduct formula gives me a count of records meeting 2
conditions

=SUMPRODUCT(--(ISBLANK(Data!U2:U10000)=FALSE),--(ISBLANK(Data!C2:C10000)=TRUE))

My struggle is there are duplicate values in array Data!U2:U10000 and I need
a count ofunique items in Data!U2:U10000 which meeting the above conditions

Thanks in advance!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default unique and conditional count

Try this array formula** :

C2:C10000 = rng1
U2:U10000 = rng2

=COUNT(1/FREQUENCY(IF(rng1="",IF(rng2<"",MATCH(rng2,rng2,0 ))),ROW(rng2)-MIN(ROW(rng2))+1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Expect this to be slow on such a large range

--
Biff
Microsoft Excel MVP


"rjreilly" wrote in message
...
the following sumproduct formula gives me a count of records meeting 2
conditions

=SUMPRODUCT(--(ISBLANK(Data!U2:U10000)=FALSE),--(ISBLANK(Data!C2:C10000)=TRUE))

My struggle is there are duplicate values in array Data!U2:U10000 and I
need
a count ofunique items in Data!U2:U10000 which meeting the above
conditions

Thanks in advance!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default unique and conditional count

Perfect. Thanks again.

"T. Valko" wrote:

Try this array formula** :

C2:C10000 = rng1
U2:U10000 = rng2

=COUNT(1/FREQUENCY(IF(rng1="",IF(rng2<"",MATCH(rng2,rng2,0 ))),ROW(rng2)-MIN(ROW(rng2))+1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Expect this to be slow on such a large range

--
Biff
Microsoft Excel MVP


"rjreilly" wrote in message
...
the following sumproduct formula gives me a count of records meeting 2
conditions

=SUMPRODUCT(--(ISBLANK(Data!U2:U10000)=FALSE),--(ISBLANK(Data!C2:C10000)=TRUE))

My struggle is there are duplicate values in array Data!U2:U10000 and I
need
a count ofunique items in Data!U2:U10000 which meeting the above
conditions

Thanks in advance!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default unique and conditional count

You're welcome!

--
Biff
Microsoft Excel MVP


"rjreilly" wrote in message
...
Perfect. Thanks again.

"T. Valko" wrote:

Try this array formula** :

C2:C10000 = rng1
U2:U10000 = rng2

=COUNT(1/FREQUENCY(IF(rng1="",IF(rng2<"",MATCH(rng2,rng2,0 ))),ROW(rng2)-MIN(ROW(rng2))+1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Expect this to be slow on such a large range

--
Biff
Microsoft Excel MVP


"rjreilly" wrote in message
...
the following sumproduct formula gives me a count of records meeting 2
conditions

=SUMPRODUCT(--(ISBLANK(Data!U2:U10000)=FALSE),--(ISBLANK(Data!C2:C10000)=TRUE))

My struggle is there are duplicate values in array Data!U2:U10000 and I
need
a count ofunique items in Data!U2:U10000 which meeting the above
conditions

Thanks in advance!






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 unique numbers Stilin Excel Worksheet Functions 2 September 19th 07 12:04 PM
Attempting to sort unique/only count first record in each unique g MJW[_2_] Excel Discussion (Misc queries) 3 August 10th 07 02:56 PM
Count # of unique occurances sharder Excel Worksheet Functions 3 June 29th 06 05:12 AM
Count Unique Entries SouthCarolina Excel Worksheet Functions 4 April 14th 06 11:44 PM
How to count unique values? Annie Excel Worksheet Functions 0 March 3rd 06 07:17 PM


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

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"