Retrieve values from multiple workbooks to a summary workbook

mpmcarthur

New Member
Joined
Oct 1, 2012
Messages
9
I have a folder for each month of the year. Within each month folder, workbooks are saved with the file name "lastname mm-dd-yy.xlsm". As you can see, the file name varies depending on the user and the date. From these source workbooks, I am interested the values in two different cells.

I would like to create a summary workbook where I can put the "lastname" and date in a cell, which will then look to the corresponding source workbook. Imagine row 1 has the dates going across (B1 = "03-01-13", C1 = "03-02-13", D1 = "03-03-13", etc). Imagine column A contains the lastnames (A2 = Person1, A3 = Person2, A4 = Person3, etc). Therefore, the value in cell B2 will look to the March folder (because the date in B1 starts with 03 which is March), find the workbook called "Person1 03-01-13.xlsm", then return the value in a specified cell (i.e. the cell reference will always be fixed, such as H5). As you can see, the macro needs to look at the values in column A and row 1 determine the source workbook name that I'm interesting in retrieving values from.

Hopefully this makes sense. I appreciate any help offered.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,203,214
Messages
6,054,202
Members
444,708
Latest member
David R__

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