PC Review


Reply
Thread Tools Rate Thread

Conditionally count unique values

 
 
CLR
Guest
Posts: n/a
 
      19th May 2010
Hi All.......
I have 23 rows in column AU that contains the string "Receipt Traveler Put
Away"
And, for those 23 rows, I have 22 unique TEXT strings in column K and one
duplicate.

I'm trying to count the unique TEXT strings in column K that have "Receipt
Traveler Put Away" in column AU.....answer would be 22

Using the following formula, I get 17.45111111......anybody see what's
wrong?.......or another way?

=SUMPRODUCT((K2:K1595<>"")/COUNTIF(K2:K1595,K2:K1595&"")*(AU2:AU1595="Receipt
Traveler Put Away"))

TIA
Vaya con Dios,
Chuck, CABGx3


 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      19th May 2010
Try the below. Please note that this is an array formula. You create array
formulas in the same way that you create other formulas, except you press
CTRL+SHIFT+ENTER to enter the formula. If successful in 'Formula Bar' you can
notice the curly braces at both ends like "{=<formula>}"

=SUM(--(FREQUENCY(IF((AU2:AU1595="Receipt Traveler Put Away"),
MATCH(K2:K1595,K2:K1595,0)),ROW(INDIRECT("1:"&ROWS(K2:K1595))))>0))

--
Jacob (MVP - Excel)


"CLR" wrote:

> Hi All.......
> I have 23 rows in column AU that contains the string "Receipt Traveler Put
> Away"
> And, for those 23 rows, I have 22 unique TEXT strings in column K and one
> duplicate.
>
> I'm trying to count the unique TEXT strings in column K that have "Receipt
> Traveler Put Away" in column AU.....answer would be 22
>
> Using the following formula, I get 17.45111111......anybody see what's
> wrong?.......or another way?
>
> =SUMPRODUCT((K2:K1595<>"")/COUNTIF(K2:K1595,K2:K1595&"")*(AU2:AU1595="Receipt
> Traveler Put Away"))
>
> TIA
> Vaya con Dios,
> Chuck, CABGx3
>
>
> .
>

 
Reply With Quote
 
CLR
Guest
Posts: n/a
 
      19th May 2010
Thanks Jacob..........your Array formula serves the purpose I was looking
for.........(now that I learned how to code in an Array Formula
<g>)..........still wondering about that SUMPRODUCT version tho

Vaya con Dios,
Chuck, CABGx3

"Jacob Skaria" <(E-Mail Removed)> wrote in message
news:9E050A71-6EC8-4EB0-88C4-(E-Mail Removed)...
> Try the below. Please note that this is an array formula. You create array
> formulas in the same way that you create other formulas, except you press
> CTRL+SHIFT+ENTER to enter the formula. If successful in 'Formula Bar' you
> can
> notice the curly braces at both ends like "{=<formula>}"
>
> =SUM(--(FREQUENCY(IF((AU2:AU1595="Receipt Traveler Put Away"),
> MATCH(K2:K1595,K2:K1595,0)),ROW(INDIRECT("1:"&ROWS(K2:K1595))))>0))
>
> --
> Jacob (MVP - Excel)
>
>
> "CLR" wrote:
>
>> Hi All.......
>> I have 23 rows in column AU that contains the string "Receipt Traveler
>> Put
>> Away"
>> And, for those 23 rows, I have 22 unique TEXT strings in column K and one
>> duplicate.
>>
>> I'm trying to count the unique TEXT strings in column K that have
>> "Receipt
>> Traveler Put Away" in column AU.....answer would be 22
>>
>> Using the following formula, I get 17.45111111......anybody see what's
>> wrong?.......or another way?
>>
>> =SUMPRODUCT((K2:K1595<>"")/COUNTIF(K2:K1595,K2:K1595&"")*(AU2:AU1595="Receipt
>> Traveler Put Away"))
>>
>> TIA
>> Vaya con Dios,
>> Chuck, CABGx3
>>
>>
>> .
>>



 
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 Unique Values but not Filtered or Hidden Values Lee Microsoft Excel Worksheet Functions 3 2nd Jun 2009 11:18 PM
counting unique values conditionally jake Microsoft Excel Misc 7 3rd Mar 2009 04:16 AM
Count unique values in one column if values in corresponding columnare null? allie357 Microsoft Excel Programming 1 7th Dec 2008 09:37 AM
Count unique values and create list based on these values =?Utf-8?B?dmlwYTIwMDA=?= Microsoft Excel Worksheet Functions 7 5th Aug 2005 01:17 AM
Count Unique Values Douglas Microsoft Excel Worksheet Functions 2 6th Aug 2003 07:10 PM


Features
 

Advertising
 

Newsgroups
 


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