Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JHL JHL is offline
external usenet poster
 
Posts: 56
Default Need Help with Sumproduct

This formula works because I found it in this forum and have applied it. Now
I want to use it for 3 conditions, but my 3rd condition is also in the column
range of C3:C46, but the condition is H4.


=SUMPRODUCT(--($A$3:$A$46=F3),--($C$3:$C$46=H3),
--($C$3:$C$46=H4),$D$3:$D$46)


When I insert the additional c3:c46 into the formula, the result is $0,
instead of the sum I'm looking for. I need to keep these particular
conditions in col C.

Any suggestions on how to overcome this?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default Need Help with Sumproduct

Try
=SUMPRODUCT(--($A$3:$A$46=F3),--($C$3:$C$46=H3)+($C$3:$C$46=H4),$D$3:$D$46)

HTH
Peter

"JHL" wrote:

This formula works because I found it in this forum and have applied it. Now
I want to use it for 3 conditions, but my 3rd condition is also in the column
range of C3:C46, but the condition is H4.


=SUMPRODUCT(--($A$3:$A$46=F3),--($C$3:$C$46=H3),
--($C$3:$C$46=H4),$D$3:$D$46)


When I insert the additional c3:c46 into the formula, the result is $0,
instead of the sum I'm looking for. I need to keep these particular
conditions in col C.

Any suggestions on how to overcome this?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 269
Default Need Help with Sumproduct

The conditions --($C$3:$C$46=H3) and --($C$3:$C$46=H4) will exclude each
other unless H3=H4

without some more detail I cannot be certain of your intent, but I think you
may want two sumproduct formulas added together.

=SUMPRODUCT(--($A$3:$A$46=F3),--($C$3:$C$46=H3),$D$3:$D$46) +
SUMPRODUCT(--($A$3:$A$46=F3),--($C$3:$C$46=H4),$D$3:$D$46)

This will total all values in D3:D46 where A=F3 and C=H3 or C=H4
--
If this helps, please remember to click yes.


"JHL" wrote:

This formula works because I found it in this forum and have applied it. Now
I want to use it for 3 conditions, but my 3rd condition is also in the column
range of C3:C46, but the condition is H4.


=SUMPRODUCT(--($A$3:$A$46=F3),--($C$3:$C$46=H3),
--($C$3:$C$46=H4),$D$3:$D$46)


When I insert the additional c3:c46 into the formula, the result is $0,
instead of the sum I'm looking for. I need to keep these particular
conditions in col C.

Any suggestions on how to overcome this?

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 with Condition OR Sumproduct with ADDRESS function - HE gholly Excel Discussion (Misc queries) 2 September 28th 09 05:07 PM
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct help. angel Excel Worksheet Functions 0 July 29th 08 09:53 AM
sumproduct freebee Excel Discussion (Misc queries) 4 July 24th 08 12:11 AM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM


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