Sumproduct for looking up and summing a range of information across multiple tabs?

fanboy

Board Regular
Joined
Feb 9, 2008
Messages
59
Hi everybody,

I have a workbook with a summary sheet that needs to be populated by a number of info tabs onto which information is updated manually.


  • The info tabs are in the same format as the summary tab, with item descriptions in column A, and data relating to this in columns C to N (the data is spend per month on each item in column A).
  • While the format of each info tab is the same, the items in the description column change.

I could manually link each summary sheet cell to all the related info tabs ('INFO1'!C6+'INFO2'!C6+....), or do something similar with vlookup, but this would take a long time to do, take loads of CPU time to process recalculation, and need to be updated regularly if new items or tabs were added.

I'm sure there is a way to use sumproduct to search all tabs in the workbook for relevant information and sum it on the summary tab using a fairly short formula that would still work if the info or summary tabs were updated, and if new sheets were added. However, I've got rather rusty and am struggling to work out how to do this. I'd appreciate any help.

Thanks for your help guys,
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I think I've figured it out. I'm using

=SUMPRODUCT(SUMIF(INDIRECT("'" & INDEX(Tabs,,) & "'!$A:$A"),$A6,INDIRECT("'" & INDEX(Tabs,,) & "'!C:C")))

Where column A is where the column with the name to be looked up, A6 contains the description to be looked up in column A, and Column C contains the value to be summed. Tabs is a list of the tabs on the spreadsheet that are to be looked up.
 
Upvote 0
If you put al name of sheets in - say - col Z starting from Z2 to Zn then in your formula change

=SUMPRODUCT(SUMIF(INDIRECT("'" & Z2:Zn& "'!$A:$A"),$A6,INDIRECT("'" & Z2:Zn& "'!C:C")))

or make dynamic name range, replace Z2:Zn with that name range
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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