Sumproduct inside a sumproduct?

charliew

Board Regular
Joined
Feb 20, 2018
Messages
71
Office Version
  1. 365
Platform
  1. Windows
I am trying to sum the products of a cell in a few sheets, based on various arrays...needless to say, it wont work...

this is what i've got:

=SUMPRODUCT((CW!$B$2:$B$1000="Ext")*(CW!$I$2:$I$1000="RH")*(INT(CW!$D$2:$D$1000)=A85))*SUMPRODUCT((TC!$B$2:$B$1000="Ext")*(TC!$I$2:$I$1000="RH")*(INT(TC!$F$2:$F$1000)=A85))

the bold bit is on the other sheet and this is where i think im going wrong...???

thank you in anticipation!!!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
take out the 2nd sumproduct and try

Code:
=SUMPRODUCT((CW!$B$2:$B$1000="Ext")*(CW!$I$2:$I$1000="RH")*(INT(CW!$D$2:$D$1000)=A85)*(TC!$B$2:$B$1000="Ext")*(TC!$I$2:$I$1000="RH")*(INT(TC!$F$2:$F$1000)=A85))
 
Upvote 0
Perhaps you mean:
Rich (BB code):
=SUMPRODUCT(
     ((CW!$B$2:$B$1000="Ext")+(TC!$B$2:$B$1000="Ext"))*
     ((CW!$I$2:$I$1000="RH")+(TC!$I$2:$I$1000="RH"))*
     (INT(CW!$D$2:$D$1000=A85)+(TC!$F$2:$F$1000=A85)))
 
Upvote 0
Neither of those are working :(

=SUM(SUMPRODUCT((CW!$B$2:$B$1000="Ext")*(CW!$I$2:$I$1000=F1)*(INT(CW!$D$2:$D$1000)=A85)),SUMPRODUCT((TC!$B$2:$B$1000="Ext")*(TC!$I$2:$I$1000=F1)*(INT(TC!$F$2:$F$1000)=A85)))

ive managed the above that is giving us a more believable number but it's still 100% correct!
 
Upvote 0
Neither of those are working :(

=SUM(SUMPRODUCT((CW!$B$2:$B$1000="Ext")*(CW!$I$2:$I$1000=F1)*(INT(CW!$D$2:$D$1000)=A85)),SUMPRODUCT((TC!$B$2:$B$1000="Ext")*(TC!$I$2:$I$1000=F1)*(INT(TC!$F$2:$F$1000)=A85)))

ive managed the above that is giving us a more believable number but it's still 100% correct!

You didn't imply a sum at all. It's hard to interpret: "giving us a more believable number but it's still 100% correct!" because of "but" in your statement.
 
Upvote 0
You didn't imply a sum at all. It's hard to interpret: "giving us a more believable number but it's still 100% correct!" because of "but" in your statement.

I'm really sorry, i missed a "not" out. It's supposed to read "giving us a more believable number but it's still NOT 100% correct!"

I think, we have managed to get this to work now tho - thank you for all your help.

On a separate issue i have a formula that is working perfectly in my "CW" sheet, but the exact same formula is throwing out a [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=value]#value [/URL] ! error in my "TC" sheet. The cells are all in the same places, the cells appear to be formatted the same...so i cant figure out why its working in one sheet and not the other??!

=SUMPRODUCT(($B$2:$B$1000="Ext")*($I$2:$I$1000="CS")*(INT($D$2:$D$1000)=AD35))

this variation kicks out a [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=value]#value [/URL] ! error but when i change the D column to F it works...! the date in D and F is both date and time just different dates and times but D column doesnt work!?
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top