Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Sumproduct syntax - more complex

I have a more complex sumproduct syntax problem
=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),--(OR((Tasks!CJ1:CJ900="New"),(Tasks!CJ1:CJ900="In
Progress"),(Tasks!CJ1:CJ900="In Progress - New"))),Tasks!CG1:CG900)

The equation worked fine, then I added the OR statement. The values for the
OR statement are all false, so the OR statement should be false. This means
the sumproduct should resolve to a 0, instead I am resolving to a #VALUE.
Where have I made an error?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Sumproduct syntax - more complex

=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),
--((Tasks!CJ1:CJ900="New")+(Tasks!CJ1:CJ900="In
Progress")+(Tasks!CJ1:CJ900="In Progress - New")),Tasks!CG1:CG900)

or

=SUMPRODUCT((Tasks!CI1:CI900="dduplessis")*(Tasks! N1:N900<"CUT")*
((Tasks!CJ1:CJ900={"New","In Progress","In Progress -
New"}))*Tasks!CG1:CG900)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Mitchell" wrote in message
...
I have a more complex sumproduct syntax problem

=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),--(OR(
(Tasks!CJ1:CJ900="New"),(Tasks!CJ1:CJ900="In
Progress"),(Tasks!CJ1:CJ900="In Progress - New"))),Tasks!CG1:CG900)

The equation worked fine, then I added the OR statement. The values for

the
OR statement are all false, so the OR statement should be false. This

means
the sumproduct should resolve to a 0, instead I am resolving to a #VALUE.
Where have I made an error?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 256
Default Sumproduct syntax - more complex

Try...

=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),(Ta
sks!CJ1:CJ900="New")+(Tasks!CJ1:CJ900="In
Progress")+(Tasks!CJ1:CJ900="In Progress - New"),Tasks!CG1:CG900)

Hope this helps!

In article ,
Mitchell wrote:

I have a more complex sumproduct syntax problem
=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),--(OR((T
asks!CJ1:CJ900="New"),(Tasks!CJ1:CJ900="In
Progress"),(Tasks!CJ1:CJ900="In Progress - New"))),Tasks!CG1:CG900)

The equation worked fine, then I added the OR statement. The values for the
OR statement are all false, so the OR statement should be false. This means
the sumproduct should resolve to a 0, instead I am resolving to a #VALUE.
Where have I made an error?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 256
Default Sumproduct syntax - more complex

Actually, I believe the following is more efficient...

=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),--I
SNUMBER(MATCH(Tasks!CJ1:CJ900,{"New","In Progress","In Progress -
New"},0)),Tasks!CG1:CG900)

or

=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),--I
SNUMBER(MATCH(Tasks!CJ1:CJ900,A2:A4,0)),Tasks!CG1: CG900)

....where A2:A4 contains New, In Progress, and In Progress - New.

Hope this helps!

In article ,
Domenic wrote:

Try...

=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),(Ta
sks!CJ1:CJ900="New")+(Tasks!CJ1:CJ900="In
Progress")+(Tasks!CJ1:CJ900="In Progress - New"),Tasks!CG1:CG900)

Hope this helps!

In article ,
Mitchell wrote:

I have a more complex sumproduct syntax problem
=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),--(OR(
(T
asks!CJ1:CJ900="New"),(Tasks!CJ1:CJ900="In
Progress"),(Tasks!CJ1:CJ900="In Progress - New"))),Tasks!CG1:CG900)

The equation worked fine, then I added the OR statement. The values for the
OR statement are all false, so the OR statement should be false. This means
the sumproduct should resolve to a 0, instead I am resolving to a #VALUE.
Where have I made an error?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Sumproduct syntax - more complex

Thanks, it worked perfectly

"Bob Phillips" wrote:

=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),
--((Tasks!CJ1:CJ900="New")+(Tasks!CJ1:CJ900="In
Progress")+(Tasks!CJ1:CJ900="In Progress - New")),Tasks!CG1:CG900)

or

=SUMPRODUCT((Tasks!CI1:CI900="dduplessis")*(Tasks! N1:N900<"CUT")*
((Tasks!CJ1:CJ900={"New","In Progress","In Progress -
New"}))*Tasks!CG1:CG900)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Mitchell" wrote in message
...
I have a more complex sumproduct syntax problem

=SUMPRODUCT(--(Tasks!CI1:CI900="dduplessis"),--(Tasks!N1:N900<"CUT"),--(OR(
(Tasks!CJ1:CJ900="New"),(Tasks!CJ1:CJ900="In
Progress"),(Tasks!CJ1:CJ900="In Progress - New"))),Tasks!CG1:CG900)

The equation worked fine, then I added the OR statement. The values for

the
OR statement are all false, so the OR statement should be false. This

means
the sumproduct should resolve to a 0, instead I am resolving to a #VALUE.
Where have I made an error?




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 as array formula? Henrik Excel Worksheet Functions 2 November 2nd 05 08:08 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 02:58 PM
Help with Complex SUMPRODUCT formula Murph Excel Worksheet Functions 5 January 26th 05 03:40 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 06:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 10:08 PM


All times are GMT +1. The time now is 03:59 PM.

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"