Extract data from subfolders, concrete lists

od33n

New Member
Joined
Feb 12, 2013
Messages
8
Hi all

Please, tell me that this is possible :)

I have folder with plenty of subfolders, each of them contains .xlsm files
Each of this file have list named for example "location"
In this list, i have data, that i would like to have in one Excel file.

The more described situation in that "location" list is, that it is filtered data (1st row is the header). But i cannot assure, that all files have this header in same sentence or all of them contains all absolutely same names. Maximum of these columns is about 100, rows count can be from 10 to 20 000 in each file.

It would be brilliant if there will be some way of writing the data from all files into one sheet.
The result i d like to, is the header with those 100 columns filled with all data from subfoldered sheets.

I think example can be...


d:\temp\1\example1!location.xlsm

abcde
a1a2a3a4

<tbody>
</tbody>

d:\temp\2\example2!location.xlsm
abcef
b1b2b3b4b5

<tbody>
</tbody>

Result file

abcdef
a1a2a3a4
b1b2b3b4b5

<tbody>
</tbody>


Thanks for your responses...
 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I cannot modify it, but i have added one null to 20 000... real maximum of rows is about 2 000 :)
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,843
Members
449,471
Latest member
lachbee

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