Highlander Mc
New Member
- Joined
- Jun 11, 2016
- Messages
- 2
Hi
I'm trying to pivot the following scenario:
[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"]Chairs[/TD]
[TD="width: 64"]Tables[/TD]
[TD="width: 64"]Carpets[/TD]
[/TR]
[TR]
[TD]Room 1[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Room 2[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Room 3[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]etc[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
To give the following answer
[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="class: xl65, width: 64"]Yes[/TD]
[TD="class: xl65, width: 64"]No[/TD]
[TD="class: xl65, width: 64"]Total[/TD]
[/TR]
[TR]
[TD]Chairs[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]3[/TD]
[/TR]
[TR]
[TD]Tables[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]3[/TD]
[/TR]
[TR]
[TD]Carpets[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]3[/TD]
[/TR]
</tbody>[/TABLE]
Currently my efforts just seem to stack the different Yes/No on top of each other. Is it possible to achieve the above?
I'm trying to pivot the following scenario:
[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"]Chairs[/TD]
[TD="width: 64"]Tables[/TD]
[TD="width: 64"]Carpets[/TD]
[/TR]
[TR]
[TD]Room 1[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Room 2[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Room 3[/TD]
[TD]No[/TD]
[TD]No[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]etc[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
To give the following answer
[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="class: xl65, width: 64"]Yes[/TD]
[TD="class: xl65, width: 64"]No[/TD]
[TD="class: xl65, width: 64"]Total[/TD]
[/TR]
[TR]
[TD]Chairs[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]3[/TD]
[/TR]
[TR]
[TD]Tables[/TD]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]3[/TD]
[/TR]
[TR]
[TD]Carpets[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]0[/TD]
[TD="class: xl65"]3[/TD]
[/TR]
</tbody>[/TABLE]
Currently my efforts just seem to stack the different Yes/No on top of each other. Is it possible to achieve the above?