Extract data in each column to rows in new worksheet

jee10

New Member
Joined
Oct 9, 2013
Messages
4
Hi. I have a spreadsheet with company details in a worksheet. Each company details are in a new column. Like the following example:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]company name[/TD]
[TD]company name[/TD]
[TD]company name
[/TD]
[/TR]
[TR]
[TD]xyz cc[/TD]
[TD]rdt pty ltd[/TD]
[TD]ggg cc[/TD]
[/TR]
[TR]
[TD]contact person[/TD]
[TD]contact person
[/TD]
[TD]contact person
[/TD]
[/TR]
[TR]
[TD]john[/TD]
[TD]mel[/TD]
[TD]kevin[/TD]
[/TR]
[TR]
[TD]tax id[/TD]
[TD]fleet number
[/TD]
[TD]profile[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]44[/TD]
[TD]xxxxxxxx profile[/TD]
[/TR]
</tbody>[/TABLE]

i basically need each of the bold heading in the first row of the new worksheet. Each company details will then need to be moved into a new row with the corresponding data under the correct heading column. Not all the companies have all the data for each heading it would be fine to have "none" value or blank in this case

Any ideas on how to do this
 
Please show the desired (expected) result.

I would like the new worksheet to look like this:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]company name
[/TD]
[TD]contact person
[/TD]
[TD]profile
[/TD]
[TD]tax id
[/TD]
[TD]fleet number
[/TD]
[/TR]
[TR]
[TD]xyz cc
[/TD]
[TD]john
[/TD]
[TD][/TD]
[TD]1234
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]rdt pty ltd
[/TD]
[TD]mel
[/TD]
[TD][/TD]
[TD][/TD]
[TD]44
[/TD]
[/TR]
[TR]
[TD]ggg cc
[/TD]
[TD]kevin
[/TD]
[TD]xxxxxxxx profile
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

hope this helps
 
Upvote 0

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