Hi all, I need to transpose my horizontal data to a vertical format:
i.e.
[TABLE="width: 258"]
<tbody>[TR]
[TD="width: 22"]B1[/TD]
[TD="width: 21, align: right"]45 [/TD]
[TD="width: 22"]B2[/TD]
[TD="width: 21, align: right"]66[/TD]
[TD="width: 22"] B3[/TD]
[TD="width: 21, align: right"]60 [/TD]
[TD="width: 22"]B3[/TD]
[TD="width: 21, align: right"]25 [/TD]
[TD="width: 22"]B4[/TD]
[TD="width: 21, align: right"]45[/TD]
[TD="width: 22"] B7[/TD]
[TD="width: 21, align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]
into
[TABLE="width: 43"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]B1[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]B2[/TD]
[TD="align: right"]66[/TD]
[/TR]
[TR]
[TD]B3[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD]B3[/TD]
[TD="align: right"]25[/TD]
[/TR]
[TR]
[TD]B4[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]B7[/TD]
[TD="align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]
Normal transpose function won't work (it places the numbers on the next row) and have looked at =INDIRECT and =INDEX but haven't been able to sort it.
Any ideas? Thanks.
i.e.
[TABLE="width: 258"]
<tbody>[TR]
[TD="width: 22"]B1[/TD]
[TD="width: 21, align: right"]45 [/TD]
[TD="width: 22"]B2[/TD]
[TD="width: 21, align: right"]66[/TD]
[TD="width: 22"] B3[/TD]
[TD="width: 21, align: right"]60 [/TD]
[TD="width: 22"]B3[/TD]
[TD="width: 21, align: right"]25 [/TD]
[TD="width: 22"]B4[/TD]
[TD="width: 21, align: right"]45[/TD]
[TD="width: 22"] B7[/TD]
[TD="width: 21, align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]
into
[TABLE="width: 43"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]B1[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]B2[/TD]
[TD="align: right"]66[/TD]
[/TR]
[TR]
[TD]B3[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD]B3[/TD]
[TD="align: right"]25[/TD]
[/TR]
[TR]
[TD]B4[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]B7[/TD]
[TD="align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]
Normal transpose function won't work (it places the numbers on the next row) and have looked at =INDIRECT and =INDEX but haven't been able to sort it.
Any ideas? Thanks.