Macro to move row data to columns

catmom

New Member
Joined
Apr 16, 2014
Messages
9
Thank you in advance for any help you can give me.

I have the following information extracted from a very old program:

[TABLE="width: 469"]
<TBODY>[TR]
[TD]Bob</SPAN>[/TD]
[TD]Eating</SPAN>[/TD]
[TD]Berries Verified</SPAN>[/TD]
[TD="colspan: 2"]February 28, 2014 7:47:24 AM CST</SPAN>[/TD]
[/TR]
[TR]
[TD]Bob</SPAN>[/TD]
[TD]Eating</SPAN>[/TD]
[TD]Apples Submitted</SPAN>[/TD]
[TD="colspan: 2"]October 10, 2012 3:31:18 PM CDT</SPAN>[/TD]
[/TR]
[TR]
[TD]Bob</SPAN>[/TD]
[TD]Eating</SPAN>[/TD]
[TD]Oranges Approved</SPAN>[/TD]
[TD="colspan: 2"]April 5, 2013 5:48:11 PM CDT</SPAN>[/TD]
[/TR]
[TR]
[TD]Bob</SPAN>[/TD]
[TD]Eating</SPAN>[/TD]
[TD]Berries Deploy</SPAN>[/TD]
[TD="colspan: 2"]January 29, 2014 9:59:14 AM CST</SPAN>[/TD]
[/TR]
[TR]
[TD]Bob</SPAN>[/TD]
[TD]Eating</SPAN>[/TD]
[TD]Apples Approved</SPAN>[/TD]
[TD="colspan: 2"]January 9, 2013 1:37:54 PM CST</SPAN>[/TD]
[/TR]
[TR]
[TD]Bob</SPAN>[/TD]
[TD]Eating</SPAN>[/TD]
[TD]Oranges Review</SPAN>[/TD]
[TD="colspan: 2"]January 15, 2013 11:31:41 AM CST</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL span=2><COL><COL><COL></COLGROUP>[/TABLE]


I need to get the data to look like this. I have been doing it cut and paste style and it is very time consuming. Is there a macro I can use to make it easier?


[TABLE="width: 1199"]
<TBODY>[TR]
[TD]Name</SPAN>[/TD]
[TD]Subject</SPAN>[/TD]
[TD]Apples Submitted</SPAN>[/TD]
[TD]Apples Approved</SPAN>[/TD]
[TD]Oranges Review</SPAN>[/TD]
[TD]Oranges Approved</SPAN>[/TD]
[TD]Grapes Start</SPAN>[/TD]
[TD]Grapes Completed</SPAN>[/TD]
[TD]Lemons Rev</SPAN>[/TD]
[TD]Lemons Baseline</SPAN>[/TD]
[TD]Berries Deploy</SPAN>[/TD]
[TD]Berries Verified</SPAN>[/TD]
[/TR]
[TR]
[TD]Bob</SPAN>[/TD]
[TD]Eating</SPAN>[/TD]
[TD="align: right"]10-Oct-12</SPAN>[/TD]
[TD="align: right"]9-Jan-13</SPAN>[/TD]
[TD="align: right"]15-Jan-13</SPAN>[/TD]
[TD="align: right"]5-Apr-13</SPAN>[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]29-Jan-14</SPAN>[/TD]
[TD="align: right"]28-Feb-14</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL span=2><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP>[/TABLE]
 
That's it! Brilliant! You have saved me days and days of work not to mention it will be accurate now. Thank you so much!
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
catmom,

Thanks for the feedback.

You are very welcome. Glad I could help.

And, come back anytime.
 
Upvote 0

Forum statistics

Threads
1,224,799
Messages
6,181,040
Members
453,014
Latest member
Chris258

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