Import Multiple Text Files Into One Sheet

Kindlysinful

New Member
Joined
Feb 17, 2007
Messages
29
Here is what I would like to be able to do;
Using excel I want to be able to import certain data fields, from certain text files, inside a certain folder, into certain cells on an ongoing updated spreadsheet, adding rows as I go. There maybe anywhere from two to 100 text files in the folder at any time. Let’s say my folder is on the desktop of “C” drive and named, “Import This Data”. My excel spreadsheet is titled “Imported Data”.
Example of my spreadsheet;
ABCDEFGHIJKL
4Part#LOT#Lat#StatusDate TestedAnother DatePR1-
SAM#1
PR1-SAM#2PR1- SAM#3PR2-SAM#1PR2-SAM#2PR2-SAM#3
5999999X88888888 L99999904/12/201813724.36514577.02613405.151
6168.2548098.3486358.175
6

<tbody>
</tbody>

The text file name would be changing but have this in common at the end of the name, “_Summ”.
Here is an example of what the text file looks like;
Identity Line 1 XXXXXXXXXXXXXXX
Identity Line 2 XXXXXXXXXXXXXXXXX
Lot #: 88888888
LAT #: L9999999
Part #: 999999X XXXXXXXXXXXXXXXX
Date Tested : Thu, Apr 12, 2018 09:54 AM
Operator ID# 9999
# Samples: 3

Sample# Pressure 1 Pressure 2
1 xxxxxxx xxxxx xxxx xxxxx xxxx xxxx 13724.365 6168.254
2 xxxxxxx xxxxx xxxx xxxx xxxx xxxx 14577.026 8098.348
3 xxxxxxx xxxxx xxxx xxxx xxxx xxxx 13405.151 6358.175
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,215,206
Messages
6,123,639
Members
449,111
Latest member
ghennedy

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