Hi,
I'd like to extract specific cells from a table like the sample one below based on the sample type in column 1. I have also provided a sample output below. Basically, I want a final table where I can classify some columns based on the types separately. What formulae can I use for achieving such an output?
Sample Data:
[TABLE="class: grid, width: 542"]
<colgroup><col><col span="6"></colgroup><tbody>[TR]
[TD]Type[/TD]
[TD]Data Point 1[/TD]
[TD]Data Point 2[/TD]
[TD]Data Point 3[/TD]
[TD]Data Point 4[/TD]
[TD]Data Point 5[/TD]
[TD]Data Point 6[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]24[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]28[/TD]
[TD="align: right"]29[/TD]
[TD="align: right"]30[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]33[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]36[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]38[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]41[/TD]
[TD="align: right"]42[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]44[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]46[/TD]
[TD="align: right"]47[/TD]
[TD="align: right"]48[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]52[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]54[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]55[/TD]
[TD="align: right"]56[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]58[/TD]
[TD="align: right"]59[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]61[/TD]
[TD="align: right"]62[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]64[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]66[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]67[/TD]
[TD="align: right"]68[/TD]
[TD="align: right"]69[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]71[/TD]
[TD="align: right"]72[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]73[/TD]
[TD="align: right"]74[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]77[/TD]
[TD="align: right"]78[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]81[/TD]
[TD="align: right"]82[/TD]
[TD="align: right"]83[/TD]
[TD="align: right"]84[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]85[/TD]
[TD="align: right"]86[/TD]
[TD="align: right"]87[/TD]
[TD="align: right"]88[/TD]
[TD="align: right"]89[/TD]
[TD="align: right"]90[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]92[/TD]
[TD="align: right"]93[/TD]
[TD="align: right"]94[/TD]
[TD="align: right"]95[/TD]
[TD="align: right"]96[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]97[/TD]
[TD="align: right"]98[/TD]
[TD="align: right"]99[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]101[/TD]
[TD="align: right"]102[/TD]
[/TR]
</tbody>[/TABLE]
Sample Output:
[TABLE="class: grid, width: 316"]
<colgroup><col span="4"></colgroup><tbody>[TR]
[TD="colspan: 4, align: center"]Type A[/TD]
[/TR]
[TR]
[TD="align: center"]Data Point 3[/TD]
[TD="align: center"]Data Point 6[/TD]
[TD="align: center"]Data Point 1[/TD]
[TD="align: center"]Data Point 5[/TD]
[/TR]
[TR]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="colspan: 4, align: center"]Type B[/TD]
[/TR]
[TR]
[TD="align: center"]Data Point 3[/TD]
[TD="align: center"]Data Point 6[/TD]
[TD="align: center"]Data Point 1[/TD]
[TD="align: center"]Data Point 5[/TD]
[/TR]
[TR]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="colspan: 4, align: center"]Type C[/TD]
[/TR]
[TR]
[TD="align: center"]Data Point 3[/TD]
[TD="align: center"]Data Point 6[/TD]
[TD="align: center"]Data Point 1[/TD]
[TD="align: center"]Data Point 5[/TD]
[/TR]
[TR]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="colspan: 4, align: center"]Type D[/TD]
[/TR]
[TR]
[TD="align: center"]Data Point 3[/TD]
[TD="align: center"]Data Point 6[/TD]
[TD="align: center"]Data Point 1[/TD]
[TD="align: center"]Data Point 5[/TD]
[/TR]
[TR]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[/TR]
</tbody>[/TABLE]
Thanks much in advance!
I'd like to extract specific cells from a table like the sample one below based on the sample type in column 1. I have also provided a sample output below. Basically, I want a final table where I can classify some columns based on the types separately. What formulae can I use for achieving such an output?
Sample Data:
[TABLE="class: grid, width: 542"]
<colgroup><col><col span="6"></colgroup><tbody>[TR]
[TD]Type[/TD]
[TD]Data Point 1[/TD]
[TD]Data Point 2[/TD]
[TD]Data Point 3[/TD]
[TD]Data Point 4[/TD]
[TD]Data Point 5[/TD]
[TD]Data Point 6[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]24[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]28[/TD]
[TD="align: right"]29[/TD]
[TD="align: right"]30[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]33[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]36[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]38[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]41[/TD]
[TD="align: right"]42[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]44[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]46[/TD]
[TD="align: right"]47[/TD]
[TD="align: right"]48[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]52[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]54[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]55[/TD]
[TD="align: right"]56[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]58[/TD]
[TD="align: right"]59[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]61[/TD]
[TD="align: right"]62[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]64[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]66[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]67[/TD]
[TD="align: right"]68[/TD]
[TD="align: right"]69[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]71[/TD]
[TD="align: right"]72[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]73[/TD]
[TD="align: right"]74[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]77[/TD]
[TD="align: right"]78[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]81[/TD]
[TD="align: right"]82[/TD]
[TD="align: right"]83[/TD]
[TD="align: right"]84[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]85[/TD]
[TD="align: right"]86[/TD]
[TD="align: right"]87[/TD]
[TD="align: right"]88[/TD]
[TD="align: right"]89[/TD]
[TD="align: right"]90[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]92[/TD]
[TD="align: right"]93[/TD]
[TD="align: right"]94[/TD]
[TD="align: right"]95[/TD]
[TD="align: right"]96[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]97[/TD]
[TD="align: right"]98[/TD]
[TD="align: right"]99[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]101[/TD]
[TD="align: right"]102[/TD]
[/TR]
</tbody>[/TABLE]
Sample Output:
[TABLE="class: grid, width: 316"]
<colgroup><col span="4"></colgroup><tbody>[TR]
[TD="colspan: 4, align: center"]Type A[/TD]
[/TR]
[TR]
[TD="align: center"]Data Point 3[/TD]
[TD="align: center"]Data Point 6[/TD]
[TD="align: center"]Data Point 1[/TD]
[TD="align: center"]Data Point 5[/TD]
[/TR]
[TR]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="colspan: 4, align: center"]Type B[/TD]
[/TR]
[TR]
[TD="align: center"]Data Point 3[/TD]
[TD="align: center"]Data Point 6[/TD]
[TD="align: center"]Data Point 1[/TD]
[TD="align: center"]Data Point 5[/TD]
[/TR]
[TR]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="colspan: 4, align: center"]Type C[/TD]
[/TR]
[TR]
[TD="align: center"]Data Point 3[/TD]
[TD="align: center"]Data Point 6[/TD]
[TD="align: center"]Data Point 1[/TD]
[TD="align: center"]Data Point 5[/TD]
[/TR]
[TR]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="colspan: 4, align: center"]Type D[/TD]
[/TR]
[TR]
[TD="align: center"]Data Point 3[/TD]
[TD="align: center"]Data Point 6[/TD]
[TD="align: center"]Data Point 1[/TD]
[TD="align: center"]Data Point 5[/TD]
[/TR]
[TR]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[TD="align: center"] [/TD]
[/TR]
</tbody>[/TABLE]
Thanks much in advance!