12learnexcel
New Member
- Joined
- Aug 3, 2009
- Messages
- 7
Hi everyone. I've been searching for a thread about this query but all I found refer to Multiple Rows to Single Columns and the like.
I need help in transposing Several Rows into Multiple Columns and I would appreciate if it's in a formula format and not VBA.
The table looks like this:
[TABLE="width: 555"]
<tbody>[TR]
[TD]Product[/TD]
[TD]Detail[/TD]
[TD="colspan: 5"]Sale[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Product 1[/TD]
[TD]Date of Sale[/TD]
[TD]A1[/TD]
[TD]A2[/TD]
[TD]A3[/TD]
[TD]A4[/TD]
[TD]A5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Client Name[/TD]
[TD]B1[/TD]
[TD]B2[/TD]
[TD]B3[/TD]
[TD]B4[/TD]
[TD]B5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Quantity[/TD]
[TD]C1[/TD]
[TD]C2[/TD]
[TD]C3[/TD]
[TD]C4[/TD]
[TD]C5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Price / Pc[/TD]
[TD]D1[/TD]
[TD]D2[/TD]
[TD]D3[/TD]
[TD]D4[/TD]
[TD]D5[/TD]
[/TR]
[TR]
[TD]Product 2[/TD]
[TD]Date of Sale[/TD]
[TD]A6[/TD]
[TD]A7[/TD]
[TD]A8[/TD]
[TD]A9[/TD]
[TD]A10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Client Name[/TD]
[TD]B6[/TD]
[TD]B7[/TD]
[TD]B8[/TD]
[TD]B9[/TD]
[TD]B10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Quantity[/TD]
[TD]C6[/TD]
[TD]C7[/TD]
[TD]C8[/TD]
[TD]C9[/TD]
[TD]C10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Price / Pc[/TD]
[TD]D6[/TD]
[TD]D7[/TD]
[TD]D8[/TD]
[TD]D9[/TD]
[TD]D10[/TD]
[/TR]
[TR]
[TD]Product 3[/TD]
[TD]Date of Sale[/TD]
[TD]A11[/TD]
[TD]A12[/TD]
[TD]A13[/TD]
[TD]A14[/TD]
[TD]A15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Client Name[/TD]
[TD]B11[/TD]
[TD]B12[/TD]
[TD]B13[/TD]
[TD]B14[/TD]
[TD]B15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Quantity[/TD]
[TD]C11[/TD]
[TD]C12[/TD]
[TD]C13[/TD]
[TD]C14[/TD]
[TD]C15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Price / Pc[/TD]
[TD]D11[/TD]
[TD]D12[/TD]
[TD]D13[/TD]
[TD]D14[/TD]
[TD]D15[/TD]
[/TR]
</tbody>[/TABLE]
Please note that the Sale number extends up to 20 and the Products are up to 200.
I need it to look like this on another worksheet:
[TABLE="width: 501"]
<tbody>[TR]
[TD="colspan: 3"]Consolidated Sales List[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product[/TD]
[TD]Date of Sale[/TD]
[TD]Client Name[/TD]
[TD]Quantity[/TD]
[TD]Price / Pc[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 1[/TD]
[TD]A1[/TD]
[TD]B1[/TD]
[TD]C1[/TD]
[TD]D1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 1[/TD]
[TD]A2[/TD]
[TD]B2[/TD]
[TD]C2[/TD]
[TD]D2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 1[/TD]
[TD]A3[/TD]
[TD]B3[/TD]
[TD]C3[/TD]
[TD]D3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 1[/TD]
[TD]A4[/TD]
[TD]B4[/TD]
[TD]C4[/TD]
[TD]D4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 1[/TD]
[TD]A5[/TD]
[TD]B5[/TD]
[TD]C5[/TD]
[TD]D5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 2[/TD]
[TD]A6[/TD]
[TD]B6[/TD]
[TD]C6[/TD]
[TD]D6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 2[/TD]
[TD]A7[/TD]
[TD]B7[/TD]
[TD]C7[/TD]
[TD]D7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 2[/TD]
[TD]A8[/TD]
[TD]B8[/TD]
[TD]C8[/TD]
[TD]D8[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 2[/TD]
[TD]A9[/TD]
[TD]B9[/TD]
[TD]C9[/TD]
[TD]D9[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 2[/TD]
[TD]A10[/TD]
[TD]B10[/TD]
[TD]C10[/TD]
[TD]D10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 3[/TD]
[TD]A11[/TD]
[TD]B11[/TD]
[TD]C11[/TD]
[TD]D11[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 3[/TD]
[TD]A12[/TD]
[TD]B12[/TD]
[TD]C12[/TD]
[TD]D12[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 3[/TD]
[TD]A13[/TD]
[TD]B13[/TD]
[TD]C13[/TD]
[TD]D13[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 3[/TD]
[TD]A14[/TD]
[TD]B14[/TD]
[TD]C14[/TD]
[TD]D14[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 3[/TD]
[TD]A15[/TD]
[TD]B15[/TD]
[TD]C15[/TD]
[TD]D15[/TD]
[/TR]
</tbody>[/TABLE]
I've been trying to research about this and work it out myself but my deadline is fast approaching. Thanks everyone in advance for your help.
I need help in transposing Several Rows into Multiple Columns and I would appreciate if it's in a formula format and not VBA.
The table looks like this:
[TABLE="width: 555"]
<tbody>[TR]
[TD]Product[/TD]
[TD]Detail[/TD]
[TD="colspan: 5"]Sale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13[/TD]
[TD]B14[/TD]
[TD]B15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Quantity[/TD]
[TD]C11[/TD]
[TD]C12[/TD]
[TD]C13[/TD]
[TD]C14[/TD]
[TD]C15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Price / Pc[/TD]
[TD]D11[/TD]
[TD]D12[/TD]
[TD]D13[/TD]
[TD]D14[/TD]
[TD]D15[/TD]
[/TR]
</tbody>[/TABLE]
Please note that the Sale number extends up to 20 and the Products are up to 200.
I need it to look like this on another worksheet:
[TABLE="width: 501"]
<tbody>[TR]
[TD="colspan: 3"]Consolidated Sales List[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product[/TD]
[TD]Date of Sale[/TD]
[TD]Client Name[/TD]
[TD]Quantity[/TD]
[TD]Price / Pc[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 1[/TD]
[TD]A1[/TD]
[TD]B1[/TD]
[TD]C1[/TD]
[TD]D1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 1[/TD]
[TD]A2[/TD]
[TD]B2[/TD]
[TD]C2[/TD]
[TD]D2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 1[/TD]
[TD]A3[/TD]
[TD]B3[/TD]
[TD]C3[/TD]
[TD]D3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 1[/TD]
[TD]A4[/TD]
[TD]B4[/TD]
[TD]C4[/TD]
[TD]D4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 1[/TD]
[TD]A5[/TD]
[TD]B5[/TD]
[TD]C5[/TD]
[TD]D5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 2[/TD]
[TD]A6[/TD]
[TD]B6[/TD]
[TD]C6[/TD]
[TD]D6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 2[/TD]
[TD]A7[/TD]
[TD]B7[/TD]
[TD]C7[/TD]
[TD]D7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 2[/TD]
[TD]A8[/TD]
[TD]B8[/TD]
[TD]C8[/TD]
[TD]D8[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 2[/TD]
[TD]A9[/TD]
[TD]B9[/TD]
[TD]C9[/TD]
[TD]D9[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 2[/TD]
[TD]A10[/TD]
[TD]B10[/TD]
[TD]C10[/TD]
[TD]D10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 3[/TD]
[TD]A11[/TD]
[TD]B11[/TD]
[TD]C11[/TD]
[TD]D11[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 3[/TD]
[TD]A12[/TD]
[TD]B12[/TD]
[TD]C12[/TD]
[TD]D12[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 3[/TD]
[TD]A13[/TD]
[TD]B13[/TD]
[TD]C13[/TD]
[TD]D13[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 3[/TD]
[TD]A14[/TD]
[TD]B14[/TD]
[TD]C14[/TD]
[TD]D14[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Product 3[/TD]
[TD]A15[/TD]
[TD]B15[/TD]
[TD]C15[/TD]
[TD]D15[/TD]
[/TR]
</tbody>[/TABLE]
I've been trying to research about this and work it out myself but my deadline is fast approaching. Thanks everyone in advance for your help.