Duplicate row data and transfer to column

saundersxvi

New Member
Joined
Apr 17, 2019
Messages
3
Hello,
I've got a txt file with over 200+ entries that I want to convert into a table. How is it possible to have data formatted as the following:

Name: Tom
Age: 23

Name: Harry
Age: 82

Into the following

[TABLE="width: 500"]
<tbody>[TR]
[TD]Name:[/TD]
[TD]Age:[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]Harry[/TD]
[TD]82[/TD]
[/TR]
</tbody>[/TABLE]

I tried data import but kept getting the Name and age repeated, which doesn't help.

Thanking you in advance.

David
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Is Name and Tom in the same cell ?
Same with age ??
Is that all the data for each person ?
 
Upvote 0
Hi Michael,

'Name' and 'Tom' are in different cells. 'Name' would be the header cell. Same with age.

There's over 200 names in the txt file with over 25+ questions asked per person. I simplified the txt and table to save space.

David
 
Upvote 0
So, what happens with the 25+ Q&A ??
Can you upload the file to DropBox and post a link back here ??
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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