Summing one cell from multiple workbooks in a folder!

hmapps

New Member
Joined
Oct 10, 2014
Messages
1
Hi All,

I have about 200 different files -- they all have an identical worksheet (same tab name) with data in the same places - I want to create another worksheet in a different workbook that takes the sum of every cell in every one of those worksheets (basically another identical sheet with the sum in each cell). I have slighlty attempted both VBA and indirect.exe, with not much luck.

I would like it to be linked to the data as each file gets updated on a constant basis - also the specific file names may change as well - so ideally it would reference the whole directory, not just exact file names.

Please let me know if anyone has an idea on how to do this!

Thank you so much for your help!!!

-Heather
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Wow! You have a lot of stuff.

I would try to approach the situation differently. Is it possible to put each of the 200 files on separate sheets of a single file? Then you can use a sum through formula. Something like =SUM(Jan:Dec!A1) which sums the values in cell A1 on all sheets between and including the sheets named Jan and Dec.

Advantages of this approach include:
No need for VBA.
No links to outside workbooks.
No need to worry about changing file names.
A change to any data on any of the sheets will automatically and instantly update the summary sheet.

Best of luck,

G/L
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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