#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default SUMPRODUCT Problem

Column D = text values (client names) where the same name could appear more
than once in the column and where there could also be blank rows.

Column H = contains "Success" or "Failure".

I want to count the number of UNIQUE clients where I have had "Success" as
an outcome, as in the example below, where the answer would be 2:

Column D Column H
AlphaX Success
AlphaX Success
DeltaD Failure
CharlieW Sucess



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default SUMPRODUCT Problem

Hi,

Try this array formula

=COUNT(1/FREQUENCY(IF(B$1:B$100="Success",MATCH(A$1:A$100,A $1:A$100,0)),ROW(A$1:A$100)-ROW(A$1)+1))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"WildWill" wrote:

Column D = text values (client names) where the same name could appear more
than once in the column and where there could also be blank rows.

Column H = contains "Success" or "Failure".

I want to count the number of UNIQUE clients where I have had "Success" as
an outcome, as in the example below, where the answer would be 2:

Column D Column H
AlphaX Success
AlphaX Success
DeltaD Failure
CharlieW Sucess



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default SUMPRODUCT Problem

Thanks, worked 100%

"Mike H" wrote:

Hi,

Try this array formula

=COUNT(1/FREQUENCY(IF(B$1:B$100="Success",MATCH(A$1:A$100,A $1:A$100,0)),ROW(A$1:A$100)-ROW(A$1)+1))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"WildWill" wrote:

Column D = text values (client names) where the same name could appear more
than once in the column and where there could also be blank rows.

Column H = contains "Success" or "Failure".

I want to count the number of UNIQUE clients where I have had "Success" as
an outcome, as in the example below, where the answer would be 2:

Column D Column H
AlphaX Success
AlphaX Success
DeltaD Failure
CharlieW Sucess



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
Problem with Sumproduct Maureen Excel Discussion (Misc queries) 4 March 31st 09 05:00 PM
SumProduct problem John Excel Worksheet Functions 5 February 23rd 09 01:52 AM
SumProduct problem robot New Users to Excel 4 August 12th 08 04:01 AM
Sumproduct problem. capt Excel Discussion (Misc queries) 7 January 13th 08 05:30 PM
SUMPRODUCT problem LeeHarris Excel Worksheet Functions 1 May 31st 06 10:23 AM


All times are GMT +1. The time now is 01:19 PM.

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"