Sumproduct across multiple worksheets (3d search)

lindstroem

New Member
Joined
Mar 2, 2015
Messages
39
Office Version
  1. 2016
Hi,
I have been using a SUMPRODUCT(SUMIF)-based function with INDIRECT function pointing to a table with named sheets to sum up information across multiple sheets.
Example =(SUMPRODUCT(SUMIF(INDIRECT("'"&Projectlist&"'!BK4:BK16");R5!;INDIRECT("'"&Projectlist&"'!BO4:BO16"))))

I now wish to expand this to have the SUMPRODUCT functionality in the sheets as well, rather than the 2d-SUMIF. I wish to have 2 vertical search critieras and 1 horizontal, I tried using a SUMPRODCT(SUMPRODUCT)-but that didnt work very well. This was my attempt:

=(SUMPRODUCT(SUMPRODUCT((INDIRECT("'"&Projectlist&"!B4:B53")=R5)*(INDIRECT("'"&Projectlist&"'!A4:A53")="Hours")*(INDIRECT("'"&Projectlist&"'!H2:T2")=S3)*(INDIRECT("'"&Projectlist&"'!H4:T52")))))

Basically vertical search criteras R5 & "Hours", and vertical search criteras S3.

Perhaps that approach is a bit to blunt, anyone have any ideas hon how to get this functionality?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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