Jerry138889
New Member
- Joined
- May 23, 2013
- Messages
- 28
Hi
I haven't been able to figure out how to phrase this to utilise the search here or on Google to find the answer, although I'm sure it is fairly simple.
I have data in the following format:
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl64, width: 64"]Company[/TD]
[TD="class: xl64, width: 64"] Rate[/TD]
[/TR]
[TR]
[TD="class: xl63"]AAA[/TD]
[TD="class: xl63"]Rate 1[/TD]
[/TR]
[TR]
[TD="class: xl63"]AAA[/TD]
[TD="class: xl63"]Rate 2[/TD]
[/TR]
[TR]
[TD="class: xl63"]AAA[/TD]
[TD="class: xl63"]Rate 3[/TD]
[/TR]
[TR]
[TD="class: xl63"]BBB [/TD]
[TD="class: xl63"]Rate 1[/TD]
[/TR]
[TR]
[TD="class: xl63"]BBB [/TD]
[TD="class: xl63"]Rate 2[/TD]
[/TR]
[TR]
[TD="class: xl63"]CCC[/TD]
[TD="class: xl63"]Rate 1[/TD]
[/TR]
[TR]
[TD="class: xl63"]CCC[/TD]
[TD="class: xl63"]Rate 2[/TD]
[/TR]
[TR]
[TD="class: xl63"]CCC[/TD]
[TD="class: xl63"]Rate 3[/TD]
[/TR]
[TR]
[TD="class: xl63"]CCC[/TD]
[TD="class: xl63"]Rate 4[/TD]
[/TR]
</tbody>[/TABLE]
and I want it to be displayed in the following format
[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl66, width: 64"]Company[/TD]
[TD="class: xl66, width: 64"] Rate[/TD]
[TD="class: xl66, width: 64"]Rate[/TD]
[TD="class: xl66, width: 64"]Rate[/TD]
[TD="class: xl65, width: 64"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]AAA[/TD]
[TD="class: xl65"]Rate 1[/TD]
[TD="class: xl65"]Rate 2[/TD]
[TD="class: xl65"]Rate 3
[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]
BBB
[/TD]
[TD="class: xl65"]Rate 1[/TD]
[TD="class: xl65"]Rate 2[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]CCC[/TD]
[TD="class: xl65"]Rate 1[/TD]
[TD="class: xl65"]Rate 2[/TD]
[TD="class: xl65"]Rate 3[/TD]
[TD="class: xl65"]
Rate 4
[/TD]
[/TR]
</tbody>[/TABLE]
Sort of like an advanced transpose function. A pivot doesn't seem to do it correctly.
Thanks for the help
I haven't been able to figure out how to phrase this to utilise the search here or on Google to find the answer, although I'm sure it is fairly simple.
I have data in the following format:
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl64, width: 64"]Company[/TD]
[TD="class: xl64, width: 64"] Rate[/TD]
[/TR]
[TR]
[TD="class: xl63"]AAA[/TD]
[TD="class: xl63"]Rate 1[/TD]
[/TR]
[TR]
[TD="class: xl63"]AAA[/TD]
[TD="class: xl63"]Rate 2[/TD]
[/TR]
[TR]
[TD="class: xl63"]AAA[/TD]
[TD="class: xl63"]Rate 3[/TD]
[/TR]
[TR]
[TD="class: xl63"]BBB [/TD]
[TD="class: xl63"]Rate 1[/TD]
[/TR]
[TR]
[TD="class: xl63"]BBB [/TD]
[TD="class: xl63"]Rate 2[/TD]
[/TR]
[TR]
[TD="class: xl63"]CCC[/TD]
[TD="class: xl63"]Rate 1[/TD]
[/TR]
[TR]
[TD="class: xl63"]CCC[/TD]
[TD="class: xl63"]Rate 2[/TD]
[/TR]
[TR]
[TD="class: xl63"]CCC[/TD]
[TD="class: xl63"]Rate 3[/TD]
[/TR]
[TR]
[TD="class: xl63"]CCC[/TD]
[TD="class: xl63"]Rate 4[/TD]
[/TR]
</tbody>[/TABLE]
and I want it to be displayed in the following format
[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl66, width: 64"]Company[/TD]
[TD="class: xl66, width: 64"] Rate[/TD]
[TD="class: xl66, width: 64"]Rate[/TD]
[TD="class: xl66, width: 64"]Rate[/TD]
[TD="class: xl65, width: 64"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]AAA[/TD]
[TD="class: xl65"]Rate 1[/TD]
[TD="class: xl65"]Rate 2[/TD]
[TD="class: xl65"]Rate 3
[/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]
BBB
[/TD]
[TD="class: xl65"]Rate 1[/TD]
[TD="class: xl65"]Rate 2[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[/TR]
[TR]
[TD="class: xl65"]CCC[/TD]
[TD="class: xl65"]Rate 1[/TD]
[TD="class: xl65"]Rate 2[/TD]
[TD="class: xl65"]Rate 3[/TD]
[TD="class: xl65"]
Rate 4
[/TD]
[/TR]
</tbody>[/TABLE]
Sort of like an advanced transpose function. A pivot doesn't seem to do it correctly.
Thanks for the help