Macro to merge 120 workbooks into 1 summary workbook

Kim B

Board Regular
Joined
Jun 16, 2008
Messages
233
Office Version
  1. 365
Hello all. I've been searching this forum for a macro that will take 120 seperate workbooks and merge the data into one workbook without having to open all 120. That would blow up for sure. Each budget has a dept number as shown in yellow cell d5. The cell needs to be made a column that will copy down to all the entries in that budget and change when the next budget gets imported.


Excel Workbook
BCDEFGHIJ
1this is the originalthe directory these budgets are stored in is g:\planning\2012\plan\budgets\reviewed
2
3
4
5DEPARTMENT: 11111MACHINE SHOP-QP
6MANAGER: S TIBBETTS
7
8ACCOUNTDESCRIPTIONQ1Q2Q3Q42011
9502022UACHANGES IN INVENTORY00000
10503201UALABOR ABSORPTION(128,262)(120,008)(109,641)(111,789)(469,700)
11511001UASALARY & WAGE - DIRECT LABOR96,67490,45366,11267,406320,646
12511003UAVACATION - DIRECT LABOR2,91310,19614,72712,46240,298
13511007UASAL&WAGE PREMIUM-DIRECT LABOR4,3944,1123,0053,06414,575
14511101UASALARY & WAGE - INDIRECT LABOR15,52115,98715,98715,98763,481
15511107UASAL&WAGE PREMIUM-INDIRECT LAB1,0001,0001,0001,0004,000
16531012UAREPAIR & MAINTENANCE - MACH2502502502501,000
17531013UAREPAIR & MAINTENANCE0
18531306UANON-CAPITALIZED TOOLS8008008008003,200
19531399UACHEMICAL - OPERATING SUPPLIES3,0003,0003,0003,00012,000
20531401UAOPERATING SUPPLIES3,0003,0003,0003,00012,000
21531411UANON-OPERATING SUPPLIES2,0002,0002,0002,0008,000
22532104UAOUTSOURCED SERVICES - OTHER150150150150600
23591101UADEPRECIATION - MACHINES35,88035,33535,33435,335141,883
24512001UADIRECT - SOCIAL SECURITY7,9558,0146,4146,34428,727
25512002UADIRECT - UNEMPLOYMENT INSURANC2,7812,7812,1632,1639,887
26512005UADIRECT - MEDICAL23,43123,43118,22418,22483,310
27512006UADIRECT - LIFE INSURANCE1,6091,6091,2511,2515,720
28512101UAINDIRECT - SOCIAL SECURITY1,2641,2991,2991,2995,162
29512102UAINDIRECT - UNEMPLOYMENT INSUR3093093093091,236
30512105UAINDIRECT - MEDICAL2,6032,6032,6032,60310,414
31512106UAINDIRECT - LIFE INSURANCE179179179179715
32512201UADIRECT - 401K7,3307,3855,9115,84626,472
33512301UAINDIRECT - 401K1,1651,1971,1971,1974,757
Budget



Excel Workbook
BCDEFG
43
44
45502022UACHANGES IN INVENTORY000
46503201UALABOR ABSORPTION(128,262)(120,008)(109,641)
47511001UASALARY & WAGE - DIRECT LABOR96,67490,45366,112
48511003UAVACATION - DIRECT LABOR2,91310,19614,727
49511007UASAL&WAGE PREMIUM-DIRECT LABOR4,3944,1123,005
50511101UASALARY & WAGE - INDIRECT LABOR15,52115,98715,987
51511107UASAL&WAGE PREMIUM-INDIRECT LAB1,0001,0001,000
52531012UAREPAIR & MAINTENANCE - MACH250250250
53531013UAREPAIR & MAINTENANCE
54531306UANON-CAPITALIZED TOOLS800800800
55531399UACHEMICAL - OPERATING SUPPLIES3,0003,0003,000
56531401UAOPERATING SUPPLIES3,0003,0003,000
57531411UANON-OPERATING SUPPLIES2,0002,0002,000
58532104UAOUTSOURCED SERVICES - OTHER150150150
59591101UADEPRECIATION - MACHINES35,88035,33535,334
60512001UADIRECT - SOCIAL SECURITY7,9558,0146,414
61512002UADIRECT - UNEMPLOYMENT INSURANC2,7812,7812,163
62512005UADIRECT - MEDICAL23,43123,43118,224
63512006UADIRECT - LIFE INSURANCE1,6091,6091,251
64512101UAINDIRECT - SOCIAL SECURITY1,2641,2991,299
65512102UAINDIRECT - UNEMPLOYMENT INSUR309309309
66512105UAINDIRECT - MEDICAL2,6032,6032,603
67512106UAINDIRECT - LIFE INSURANCE179179179
68512201UADIRECT - 401K7,3307,3855,911
69512301UAINDIRECT - 401K1,1651,1971,197
Budget
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Sorry about that last html. I left out some data

Excel Workbook
ABCDEFGH
42Sorry this is the what the result is to look like. And column a45 comes from above f5 not d5 as originially stated
43This is what the result needs to look like I dont need any column headings or formatting. Just a dump into another workbook.
44
4511111502022UACHANGES IN INVENTORY0000
4611111503201UALABOR ABSORPTION(128,262)(120,008)(109,641)(111,789)
4711111511001UASALARY & WAGE - DIRECT LABOR96,67490,45366,11267,406
4811111511003UAVACATION - DIRECT LABOR2,91310,19614,72712,462
4911111511007UASAL&WAGE PREMIUM-DIRECT LABOR4,3944,1123,0053,064
5011111511101UASALARY & WAGE - INDIRECT LABOR15,52115,98715,98715,987
5111111511107UASAL&WAGE PREMIUM-INDIRECT LAB1,0001,0001,0001,000
5211111531012UAREPAIR & MAINTENANCE - MACH250250250250
5311111531013UAREPAIR & MAINTENANCE
5411111531306UANON-CAPITALIZED TOOLS800800800800
5511111531399UACHEMICAL - OPERATING SUPPLIES3,0003,0003,0003,000
5611111531401UAOPERATING SUPPLIES3,0003,0003,0003,000
5711111531411UANON-OPERATING SUPPLIES2,0002,0002,0002,000
5811111532104UAOUTSOURCED SERVICES - OTHER150150150150
5911111591101UADEPRECIATION - MACHINES35,88035,33535,33435,335
6011111512001UADIRECT - SOCIAL SECURITY7,9558,0146,4146,344
6111111512002UADIRECT - UNEMPLOYMENT INSURANC2,7812,7812,1632,163
6211111512005UADIRECT - MEDICAL23,43123,43118,22418,224
6311111512006UADIRECT - LIFE INSURANCE1,6091,6091,2511,251
6411111512101UAINDIRECT - SOCIAL SECURITY1,2641,2991,2991,299
6511111512102UAINDIRECT - UNEMPLOYMENT INSUR309309309309
6611111512105UAINDIRECT - MEDICAL2,6032,6032,6032,603
6711111512106UAINDIRECT - LIFE INSURANCE179179179179
6811111512201UADIRECT - 401K7,3307,3855,9115,846
6911111512301UAINDIRECT - 401K1,1651,1971,1971,197
Budget
 
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