Extract data – Multiple Files – to Single File – in Excel 2007

nostradamus

Board Regular
Joined
Aug 9, 2010
Messages
143
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I need help with appending data from several excel files with the same “data titles” into one single Excel MasterFile. I know there is lot of help/codes out there for simple merge/append, but this one has to match column/row titles and extract relevant data, and some Titles may not be in the same order.

I want all this data to be brought in a single row in the new Excel MasterFile.
So data from each data file will be arranged under appropriate Column Titles without error.

Some files may have info only from few rows (only T1, T2, A1, EdgeA - as shown below).

Location where files saved are:
Master excel file is saved in Folder C:\Users\Nostro\Documents\MasterFile
Multiple excel files are saved in Folder C:\Users\Nostro\Documents\MultipleFiles

Sample Data file
ABCD
1GB_40X_064
2FeatureNameLocationX(mm)LocationY(mm)Length(mm)
3Core1.501.71
4T11.43
5T21.33
6A12.101.61
7A22.341.57
8A32.551.53
9A42.751.51
10EdgeA2.911.48
11A1b1.351.21
12A2b1.291.00
13A3b1.180.67
14A4b1.140.52
15EdgeB1.110.44
16Inc_10.61
17Inc_20.85
18Inc_31.06
19Inc_41.27
20Inc_EdgeA1.43
21Inc_1b0.52
22Inc_2b0.74
23Inc_3b1.09
24Inc_4b1.25
25Inc_EdgeB1.33

<tbody>
</tbody>


Master File where I need data to be extracted to based on the column/row title

ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAI
1Fish#Core_LocationX(mm)Core_LocationY(mm)A1_LocationX(mm)A2_LocationX(mm)A3_LocationX(mm)A4_LocationX(mm)EdgeA_LocationX(mm)A1b_LocationX(mm)A2b_LocationX(mm)A3b_LocationX(mm)A4b_LocationX(mm)EdgeB_LocationX(mm)A1_LocationY(mm)A2_LocationY(mm)A3_LocationY(mm)A4_LocationY(mm)EdgeA_LocationY(mm)A1b_LocationY(mm)A2b_LocationY(mm)A3b_LocationY(mm)A4b_LocationY(mm)EdgeB_LocationY(mm)T1_Length(mm)T2_Length(mm)Inc_1_Length(mm)Inc_2_Length(mm)Inc_3_Length(mm)Inc_4_Length(mm)Inc_EdgeA_Length(mm)Inc_1b_Length(mm)Inc_2b_Length(mm)Inc_3b_Length(mm)Inc_4b_Length(mm)Inc_EdgeB_Length(mm)
2
3
4
5
6

<tbody>
</tbody>

So I need data from all the small files stored in the MultipleFiles folder to be pulled in the Master file in MasterFile folder location.

I think a vba code here would be appropriate. I can post a few MultipleExcelFiles & the MasterExcel file here if it would help (just not sure how I could go about doing it tho).

Thanks a million for going thru my long arduous post.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,591
Messages
6,120,429
Members
448,961
Latest member
nzskater

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