Hi all!
Hope someone can help me out with this one:
I receive text files (.txt) with comments made by customers in the following format:
[TABLE="width: 108"]
<colgroup><col></colgroup><tbody>[TR]
[TD]USER NAME 1[/TD]
[/TR]
[TR]
[TD]USER COMMENT[/TD]
[/TR]
[TR]
[TD]Time stamp[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]USER NAME 2[/TD]
[/TR]
[TR]
[TD]USER COMMENT[/TD]
[/TR]
[TR]
[TD]Time stamp[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]USER NAME 3[/TD]
[/TR]
[TR]
[TD]USER COMMENT[/TD]
[/TR]
[TR]
[TD]Time stamp[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This goes on about a thousand times, with a multitude of users making comments. I want to load this into excel, then I want two columns: one with the user name, one with the user comment. The Time stamp row is irrelevant and I want to remove. I've tried paste special --> transpose (lots of manual steps required...) and 'text to columns' with 'delimited', but there is no specific delimiter that I can use to split these in columns. So, I want to convert these text files containing a huge amount of data in the format as displayed above into 2 columns (one has the user names, one the user comments). Anyone know how to do this? Please see below what the data from text file looks like as pasted into excel, and what is the desired situation.
Greatly appreciated
data from text file as pasted into excel:
[TABLE="width: 500"]
<tbody>[TR]
[TD]USER NAME 1[/TD]
[/TR]
[TR]
[TD]USER COMMENT 1[/TD]
[/TR]
[TR]
[TD]TIME STAMP[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]USER NAME 2[/TD]
[/TR]
[TR]
[TD]USER COMMENT 2[/TD]
[/TR]
[TR]
[TD]TIME STAMP[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]USER NAME 3[/TD]
[/TR]
[TR]
[TD]USER COMMENT 3[/TD]
[/TR]
[TR]
[TD]TIME STAMP[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]USER NAME 4[/TD]
[/TR]
[TR]
[TD]USER COMMENT 4[/TD]
[/TR]
[TR]
[TD]TIME STAMP[/TD]
[/TR]
</tbody>[/TABLE]
DESIRED:
[TABLE="width: 500"]
<tbody>[TR]
[TD]USER NAME 1[/TD]
[TD]USER COMMENT 1[/TD]
[/TR]
[TR]
[TD]USER NAME 2[/TD]
[TD]USER COMMENT 2[/TD]
[/TR]
[TR]
[TD]USER NAME 3[/TD]
[TD]USER COMMENT 3[/TD]
[/TR]
[TR]
[TD]USER NAME 4[/TD]
[TD]USER COMMENT 4[/TD]
[/TR]
</tbody>[/TABLE]
Hope someone can help me out with this one:
I receive text files (.txt) with comments made by customers in the following format:
[TABLE="width: 108"]
<colgroup><col></colgroup><tbody>[TR]
[TD]USER NAME 1[/TD]
[/TR]
[TR]
[TD]USER COMMENT[/TD]
[/TR]
[TR]
[TD]Time stamp[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]USER NAME 2[/TD]
[/TR]
[TR]
[TD]USER COMMENT[/TD]
[/TR]
[TR]
[TD]Time stamp[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]USER NAME 3[/TD]
[/TR]
[TR]
[TD]USER COMMENT[/TD]
[/TR]
[TR]
[TD]Time stamp[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This goes on about a thousand times, with a multitude of users making comments. I want to load this into excel, then I want two columns: one with the user name, one with the user comment. The Time stamp row is irrelevant and I want to remove. I've tried paste special --> transpose (lots of manual steps required...) and 'text to columns' with 'delimited', but there is no specific delimiter that I can use to split these in columns. So, I want to convert these text files containing a huge amount of data in the format as displayed above into 2 columns (one has the user names, one the user comments). Anyone know how to do this? Please see below what the data from text file looks like as pasted into excel, and what is the desired situation.
Greatly appreciated
data from text file as pasted into excel:
[TABLE="width: 500"]
<tbody>[TR]
[TD]USER NAME 1[/TD]
[/TR]
[TR]
[TD]USER COMMENT 1[/TD]
[/TR]
[TR]
[TD]TIME STAMP[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]USER NAME 2[/TD]
[/TR]
[TR]
[TD]USER COMMENT 2[/TD]
[/TR]
[TR]
[TD]TIME STAMP[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]USER NAME 3[/TD]
[/TR]
[TR]
[TD]USER COMMENT 3[/TD]
[/TR]
[TR]
[TD]TIME STAMP[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]USER NAME 4[/TD]
[/TR]
[TR]
[TD]USER COMMENT 4[/TD]
[/TR]
[TR]
[TD]TIME STAMP[/TD]
[/TR]
</tbody>[/TABLE]
DESIRED:
[TABLE="width: 500"]
<tbody>[TR]
[TD]USER NAME 1[/TD]
[TD]USER COMMENT 1[/TD]
[/TR]
[TR]
[TD]USER NAME 2[/TD]
[TD]USER COMMENT 2[/TD]
[/TR]
[TR]
[TD]USER NAME 3[/TD]
[TD]USER COMMENT 3[/TD]
[/TR]
[TR]
[TD]USER NAME 4[/TD]
[TD]USER COMMENT 4[/TD]
[/TR]
</tbody>[/TABLE]