Extract data from multiple excel files to one spreadsheet

wangfat

New Member
Joined
Jan 19, 2007
Messages
9
Hi
I have 100 excel files from my vendor which files have the same naming eg P17_Mug, P17_Bottle, P17_Plate... From these files, I need to extract some data in one of the tabs - Products (it is the same name across all these files). These data are in the range eg cells M1:N50. For the time being, I manually copy and paste to the new spreadsheet these data to do the analysis and report to manager.

Please advise which excel functions without opening these 100+ files (indirect, match?) or using VBA to eliminate these repetitive work. If using VBA, please how to code.

The final result in the new spreadsheet is as follows:

Products is the file name
Country is the column M in these file
Quantity is the column N in these file

Products Country Quantity
Mug Canada 100
Bottle U.K. 510
Plate Germany 85


Thanks
Ruby
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,214,375
Messages
6,119,168
Members
448,870
Latest member
max_pedreira

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