Transpose periodic description rows to column in txt file import

sidewz

New Member
Joined
Apr 13, 2013
Messages
1
Hi , im hoping someone can point me in the right direction on this, Im sure its been done before, but I cannot find the right search phrase to find an answer.

I have a txt file output from a system (pabx).
In that file, it has a header row, and then a bunch of comma delimited lines of info about the object in that header row.
Then another header row, and more data rows about that header object.
The number of data rows varies per header row, depending how much info there is about that object.


What i want to know is how to take the header row, and insert it as column A for the following rows, changing it every time there is a new header row.

Eg.
Report object x

data 1, data2, data3
data1, data2, data3

Report Object Y

data 1, data2, data3
data1, data2, data3


I want it to become.
X, data1, data2, data3
X, data1, data2, data3
Y, data1, data2, data3
Y, data1, data2, data3

Sample data.

4-13-2013 4:22 PM - Report for Voice System name: Albert St CM reporting - list usage extens 20001
Announcement
VectorVector Number78Step17
4-13-2013 4:22 PM - Data Export
4-13-2013 4:22 PM - Report for Voice System name: Albert St CM reporting - list usage extension 20002
Announcement
VectorVector Number4Step6
VectorVector Number18Step6
4-13-2013 4:22 PM - Data Export

<tbody>
</tbody>


Thanks in advance.
Dave
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,196,456
Messages
6,015,361
Members
441,889
Latest member
balolaptopgiaolong

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