Automating Data feed from Different Workbooks Using VBA

elieyachoui

New Member
Joined
May 11, 2013
Messages
1
I am a new user of VBA and would appreciate your support.

I have a data set for each of the following workbooks Labor Wages, Capital Expense, and Licensing Expense.

-Each of these Workbooks have several projects (displayed horizontally) identified by the following characteristics: Project ID (sometimes it is written as Proj ID in other workbooks), Year, Month, Cost, Manager, and Cost Department ID (also could be named differently such as CDID).

***Also the the Year, Month, Project ID, Manager, CDID columns are not organized in the same way across the different Workbooks.

-Technically, a Project ID of 345 found in the Labor Wages workbook should also be found in the Capital Expense as well as the Licensing Expense Workbooks, such that all those expenses accumulate to form ONE Total expense for Project ID 345.

Question

Assume that I have the data in those 3 Workbooks (Labor Wages, Capital Expense, and Licensing Expense)

How can I consolidate the Expenses for each of those Projects in a Summary Workbook.
i.e. the VBA should allow me to display 1 project after the other while collecting all the information (from separate Workbooks) in the Summary Workbook.

Result displays those column titles: Project ID, Year, Month, Manager, CDID, Labor Wages, Capital Expense, Licensing Expense, and finally Total Expenses.
....with the data underneath

then Sum the expenses to give Total Expenses

I am really thankful for your help!

Elie
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,216,077
Messages
6,128,679
Members
449,463
Latest member
Jojomen56

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