Sumif across multiple work sheets

Hollywoood

Board Regular
Joined
Aug 11, 2011
Messages
53
Hi all,

I have about 20 work sheets that I am trying to get a sumif statement to work across but I keep getting an error.

I first tried a very basic form hoping it would work

=sumif(Start:End!G17,=K21,Start:End!J18)

This didnt seem to work so I looked on the forms and found an old thread that suggested the following

=SUMPRODUCT(SUMIF(INDIRECT("'"&SheetList&"'!A2:A10"),D2,INDIRECT("'"&SheetList&"'!B2:B10")))

Where the instructions are to replace SheetList with your own sheet list. Would I simply replace the following?

SheetList with Start:End
A2:A10 with G17
D2 with K21
B2:B10 with J18

Ive tried a straight substitution but I am getting an error, any thoughts?

Thanks so much in advance
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Thanks Brian,

I actually came to that realization after reading a little more and trying some options. Given the number of Sheet names that can exist, is there an option to do a Start:End option to encompass all sheets inbetween those or do I need to add each individual sheet name to my list?

Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,919
Members
452,949
Latest member
beartooth91

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