Transform single column into multiple columns & rows

henryg

Board Regular
Joined
Oct 23, 2008
Messages
152
Office Version
  1. 365
Platform
  1. Windows
I have data in this format
[TABLE="width: 50, align: left"]
<tbody>[TR]
[TD]A[/TD]
[TD]d[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]f[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]g[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]h[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]i[/TD]
[/TR]
</tbody>[/TABLE]
and I want

[TABLE="width: 50, align: left"]
<tbody>[TR]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 50, align: left"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]e[/TD]
[TD]f[/TD]
[/TR]
[TR]
[TD]g[/TD]
[TD]h[/TD]
[TD]i[/TD]
[/TR]
</tbody>[/TABLE]

for about a thousand rows; and preferably not a macro.

Pretty sure this must be a common problem, but couldn't find it here. I thought it was in one of Bill's videos but again couldn't find it.

Thanks :)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
The above either doesn't do it, or I can't get my head around it. I have been able to get a helper column in place so that the data then looks like (so 3 columns)

A d 1
B e 1
C f 1
A g 2
B h 2
C i 2
A j 3
B k 3
C l 3

etc etc

and I still want the output to be in 3 columns - helper column shown but not needed

A B C Helper
d e f 1
g h i 2
j k l 3

It's driving me crazy
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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