Reference different workbooks and sum the individual values

emymeeky

New Member
Joined
Mar 26, 2017
Messages
4
I have a table in a worksheet (named "stock list") with 5 columns in a workbook I will call Workbook1 and in other workbooks with identical tables. The last column in workbook1 named "Total" is gotten by summing the "Totals" from the external workbooks.

These external data sources are saved as CSV in the document folder.
In another sheet (called Datasources) of workbook1 I have a dynamic list of the external workbook names arranged in column A.

What I need is a formula that will reference the external workbooks specified in column A (Of Datasources). In other words, I need a SUMIF function which will
1. check the first column of sheet "stock list",
2. then check "Datasources" for the list of names of the external workbook sources
3. Apply sumif function on each of the workbooks and sum their individual result and return the value to the last column of workbook1.


Thanks

See attached file
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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