Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default question using SUMPRODUCT

I have a list of cases that are delayed. The list shows the case manager and
the delay code entered for the case. The delay codes that count against the
office are "WO", "AG", or if the delay code field is blank "".

I have a SUMPRODUCT formula that can count how many "AG" codes a case
manager has (Q is the column for the case manager ID#s, B is the column with
the particular case manager, AC is the column that has the delay codes):

IF(SUMPRODUCT(--($Q$3:$Q$500=B19),--($AC$3:$AC$500="AG"))=0,"",SUMPRODUCT(--($Q$3:$Q$500=B19),--($AC$3:$AC$500="AG")))

How can this be adapted to count all "AG", "WO", or blank "" codes for a
case manager?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 905
Default question using SUMPRODUCT

"Bradly" wrote:
How can this be adapted to count all "AG",
"WO", or blank "" codes for a case manager?


The simplest expression might:

=SUMPRODUCT(($Q$3:$Q$500=B19)
*($AC$3:$AC$500={"AG","WO",""}))

formatted with the Custom format "#;-#;" without quotes. Note the trailing
semicolon.

But that does leave a value of zero in the cell. If you truly want the null
string for some reason, not just for appearances, then something similar to
what you had:

=IF(SUMPRODUCT(($Q$3:$Q$500=B19)
*($AC$3:$AC$500={"AG","WO",""})),
SUMPRODUCT(($Q$3:$Q$500=B19)
*($AC$3:$AC$500={"AG","WO",""})), "")


----- original message -----

"Bradly" wrote:

I have a list of cases that are delayed. The list shows the case manager and
the delay code entered for the case. The delay codes that count against the
office are "WO", "AG", or if the delay code field is blank "".

I have a SUMPRODUCT formula that can count how many "AG" codes a case
manager has (Q is the column for the case manager ID#s, B is the column with
the particular case manager, AC is the column that has the delay codes):

IF(SUMPRODUCT(--($Q$3:$Q$500=B19),--($AC$3:$AC$500="AG"))=0,"",SUMPRODUCT(--($Q$3:$Q$500=B19),--($AC$3:$AC$500="AG")))

How can this be adapted to count all "AG", "WO", or blank "" codes for a
case manager?
Thanks.

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
SumProduct Question Anne Excel Worksheet Functions 6 October 17th 08 11:05 PM
SUMPRODUCT question juliejg1 Excel Worksheet Functions 3 December 14th 07 08:10 PM
Sumproduct question pdberger Excel Worksheet Functions 4 December 13th 07 08:24 PM
sumproduct question [email protected] Excel Discussion (Misc queries) 5 November 8th 06 10:17 PM
another sumproduct question cjjoo Excel Worksheet Functions 1 October 11th 05 03:43 AM


All times are GMT +1. The time now is 05:38 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"