Combine multiple sheets which have multiple tables on each sheet - Macro/VBA?

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
128
Office Version
  1. 2013
Platform
  1. Windows
Hi All,

I am not familiar with Macro/VBA.

So I have a situation - where i have 20 files that I need to combine.

Each of these 20 files have about 6 tabs each.

I will list these 6 tabs out as follows:

1) Staff and Part Time Resources
2) S&D Expenses
3) Overhead Expenses
4) Prior Year Staff and Part Time Resources
5) Prior Year S&D Expenses
6) Prior Year Overhead Expenses

Some of my tabs like S&D Expenses, Overhead Expenses will have multiple sub expenses on that sheet. My objectives are as follows:

1) Consolidate the 20 files in a way that main master file will have 6 tabs. (This i understand should be possible)

2) I would like the consolidation to take place by the sub expenses section on each sheet

Is it possible to have the macro add and consolidate data in each sheet by each sub expense type as shown below. So in below, I would need the macro to consolidate all the Marketing Expenses together and then move on to the Direct Selling Costs.

Thanks,


1681179407830.png
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
This is not a straight forward task, is this a one time thing or is it a repeated task, does the data differ greatly when repeated?
There are a lot of things that need to be considered, yes a code can be made to do what you ask but it would take some time and would be vulnerable as the data is not guaranteed to be in the exact same format each time.
If it is a one time thing, it would be better to do this semi-automated
If it is a recurring task, it would be better to do this in code but as it would rely on very static parameters it would be fragile and could break easily if the data changed slightly

Hope this will help you consider your question a bit more
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,716
Members
452,939
Latest member
WCrawford

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