Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default SUMPRODUCT excluding multiple conditions

I know how to work a sumproduct where you're trying to include multiple
values in an array, but how do you exclude multiple values.

Below is the formula I am currently using:
=SUMPRODUCT(--($G$2:$G$8000=J8),--($E$2:$E$8000<"NJ"),--($F$2:$F$8000<"FL"),--($D$2:$D$8000))

I need the ($F$2:$F$8000<"FL") to also be < to "NJ" too.

Any help would be greatly appreciated. Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default SUMPRODUCT excluding multiple conditions

try

=SUMPRODUCT(($G$2:$G$800=J8)*($E$2:$E$800<"NJ")*( $F$2:$F$800<"FL")*($F$2:$F$800<"NJ")*($D$2:$D$80 0))

Mike

"tmwilkin" wrote:

I know how to work a sumproduct where you're trying to include multiple
values in an array, but how do you exclude multiple values.

Below is the formula I am currently using:
=SUMPRODUCT(--($G$2:$G$8000=J8),--($E$2:$E$8000<"NJ"),--($F$2:$F$8000<"FL"),--($D$2:$D$8000))

I need the ($F$2:$F$8000<"FL") to also be < to "NJ" too.

Any help would be greatly appreciated. Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default SUMPRODUCT excluding multiple conditions

Maybe this

=SUMPRODUCT(--($G$2:$G$8000=J8),--($E$2:$E$8000<"NJ"),--($F$2:$F$8000<"FL"),--($F$2:$F$8000<"NJ"),$D$2:$D$8000)

If you are totaling numbers in D2:D80000 then you don't need the unary
minuses for the last part


--


Regards,


Peo Sjoblom


"tmwilkin" wrote in message
...
I know how to work a sumproduct where you're trying to include multiple
values in an array, but how do you exclude multiple values.

Below is the formula I am currently using:
=SUMPRODUCT(--($G$2:$G$8000=J8),--($E$2:$E$8000<"NJ"),--($F$2:$F$8000<"FL"),--($D$2:$D$8000))

I need the ($F$2:$F$8000<"FL") to also be < to "NJ" too.

Any help would be greatly appreciated. Thanks!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default SUMPRODUCT excluding multiple conditions

That seemed to do the trick even though it seemed like too easy of an answer.

"Peo Sjoblom" wrote:

Maybe this

=SUMPRODUCT(--($G$2:$G$8000=J8),--($E$2:$E$8000<"NJ"),--($F$2:$F$8000<"FL"),--($F$2:$F$8000<"NJ"),$D$2:$D$8000)

If you are totaling numbers in D2:D80000 then you don't need the unary
minuses for the last part


--


Regards,


Peo Sjoblom


"tmwilkin" wrote in message
...
I know how to work a sumproduct where you're trying to include multiple
values in an array, but how do you exclude multiple values.

Below is the formula I am currently using:
=SUMPRODUCT(--($G$2:$G$8000=J8),--($E$2:$E$8000<"NJ"),--($F$2:$F$8000<"FL"),--($D$2:$D$8000))

I need the ($F$2:$F$8000<"FL") to also be < to "NJ" too.

Any help would be greatly appreciated. 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 multiple conditions jwfullerton Excel Discussion (Misc queries) 1 February 26th 08 12:21 AM
sumproduct - multiple conditions Marcotte A Excel Worksheet Functions 7 July 27th 07 04:11 PM
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec TravisB Excel Discussion (Misc queries) 21 March 16th 07 09:49 PM
Sumproduct Multiple < Conditions undrline via OfficeKB.com Excel Worksheet Functions 4 March 15th 07 06:04 PM
Multiple SumProduct conditions wal50 Excel Worksheet Functions 3 November 23rd 04 10:48 PM


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