Sumproduct multiple sheets and multiple criterias

jmavec

New Member
Joined
Nov 19, 2011
Messages
2
In excel 2010 I’m using formula <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
=SUMPRODUCT(--('Sheet1'!$D$1:$D$1027=$B23);--('Sheet1'!$C$1:$C$1027=L$2);('Sheet1'!$A$1:$A$1027))<o:p></o:p>
to get information from range A1:A1027 on Sheet1, if two criterion on current page are fulfilled. First criterion is that cell in range of D1:D1027 on Sheet1 matches cell in B column on current page and second criterion is that cell in the same row from range C1:C1027 on Sheet1 matches L2 cell on current pate. This formula is working fine on one page, however I would like to get formula working over the same range of cells (columns) on 20 Sheets at the same time and wouldn’t like to copy paste the same formula and summarize. Is there the way to do it, I tried with INDIRECT option but not success there.<o:p></o:p>
<o:p> </o:p>
Than you<o:p></o:p>
<o:p> </o:p>
Jože<o:p></o:p>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
First, list your sheets in a range of cells, let's say G1:G20. Then, try...


=SUMPRODUCT(SUMIFS(INDIRECT("'"&$G$1:$G$20&"'!A1:A1027");INDIRECT("'"&$G$1:$G$20&"'!D1:D1027");$B23;INDIRECT("'"&$G$1:$G$20&"'!C1:C1027");L$2))
 
Upvote 0
Perfect. It is working great, and it is even working with full columns, I don’t need to define range of cells and I added additional criterion. Now it looks like this:
=SUMPRODUCT(SUMIFS(INDIRECT("'"&menu_sheet_list&"'!A:A");INDIRECT("'"&menu_sheet_list&"'!D:D");$B3;INDIRECT("'"&menu_sheet_list&"'!C:C");AA$2;INDIRECT("'"&menu_sheet_list&"'!B:B");$Z$1))
where menu_sheet_list defines the range of sheets.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
Thank you Domenic.<o:p></o:p>
 
Upvote 0
i was going through the SUMPRODUCT formulas . i found this code very useful.

thanks Domenic.


First, list your sheets in a range of cells, let's say G1:G20. Then, try...


=SUMPRODUCT(SUMIFS(INDIRECT("'"&$G$1:$G$20&"'!A1:A1027");INDIRECT("'"&$G$1:$G$20&"'!D1:D1027");$B23;INDIRECT("'"&$G$1:$G$20&"'!C1:C1027");L$2))
 
Upvote 0

Forum statistics

Threads
1,223,098
Messages
6,170,103
Members
452,302
Latest member
TaMere

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