Loading several .txt files into different sheets of an .xls

lookingforananswer

New Member
Joined
Aug 13, 2015
Messages
2
Hello everyone,

I´m trying to analyze several measurements in one excel Worksheet.
Attached you find the xls sheet and a picture showing the folder structure where the measurement data is stored.

https://www.dropbox.com/s/7dvmtv458cpumb4/Capture.JPG?dl=0

https://www.dropbox.com/s/xvk6fdjt9cb091w/Example.xlsx?dl=0

For several sections I always did the same measurements of different types (A,B,C).
For each section exists one worksheet.
On the worksheet "overview" I want to use different diagrams which take the data
out of the worksheets for the different sections.
If I want to compare measurements of type "A" for all sections then I have to manually
drag and drop e.g.

"A.txt" from the corresponding folder "D:\Textfiles\Section A\1\A.txt" in the worksheet "Section A - 1"
as well as
"A.txt" from the corresponding folder "D:\Textfiles\Section A\2\A.txt" in the worksheet "Section A - 2"
and so on, for all worksheets.

I want to automatize that process.

My idea is, that i have the names of the worksheets with the measurements (e.g. "Section A - 1") in a column (e.g. column A) on the overview page
and in one of the columns next to it (e.g. cloumn G), I write the paths to the .txt files of the corresponding measurements (D:\Textfiles\Section A\1\A.txt).
Excel should then automatically load the .txt file under that file path in the corresponding worksheet.

How can I realize that?

Thank you already in advance for your help.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

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