Excel to text output

whitefeather

New Member
Joined
May 9, 2016
Messages
29
Dear All,

I have a worksheet like this-

[TABLE="class: tableizer-table"]
<tbody>[TR="class: tableizer-firstrow"]
[TH]TYPE[/TH]
[TH]NAME[/TH]
[/TR]
[TR]
[TD]A[/TD]
[TD]Rachell Rivard[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Fatimah Tay[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Zane Crowley[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Hermine Elsner[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Leigh Ortez[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Priscilla Michie[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Ken Cardiel[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Mack Zheng[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Ruthe Lanz[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Neida Gallivan[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Sherry Barrientez[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Sondra Schrage[/TD]
[/TR]
</tbody>[/TABLE]

Now, I intend to generate individual text files which file name will be based on the contents of the 1st column and every text file will contain contents from the 2nd column for each respective value of the 1st column. For example, there will be 3 text files generated from the table above namely 'A', 'B' and 'C'; 'A' file will contain-
[TABLE="width: 113"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Rachell Rivard[/TD]
[/TR]
[TR]
[TD]Fatimah Tay[/TD]
[/TR]
[TR]
[TD]Zane Crowley[/TD]
[/TR]
[TR]
[TD]Hermine Elsner[/TD]
[/TR]
</tbody>[/TABLE]

Expecting your help in this regard, thanks in advance.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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