Hi,
I want to break down every row into multiple row where a part of it would be carried forward from the parent and the last column would be the transpose of the remaining part of the parent row. Here's an example.
Table 1 (static column A, B. variable column: C, D, E, F...):
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD="align: center"]Column A[/TD]
[TD="align: center"]Column B
[/TD]
[TD="align: center"]Column C[/TD]
[TD="align: center"]Column D[/TD]
[TD="align: center"]Column E[/TD]
[TD="align: center"]Column F[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]def[/TD]
[TD]ABC[/TD]
[TD]DEF[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]lmn[/TD]
[TD]pqr[/TD]
[TD]LMN[/TD]
[TD]PQR[/TD]
[TD]XYZ[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would want it to look like:
Table 2:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A
[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[/TR]
[TR]
[TD]abc
[/TD]
[TD]def[/TD]
[TD]ABC[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]def[/TD]
[TD]DEF[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]lmn[/TD]
[TD]pqr[/TD]
[TD]LMN[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]lmn
[/TD]
[TD]pqr[/TD]
[TD]PQR[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]lmn[/TD]
[TD]pqr[/TD]
[TD]XYZ[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
There are almost a 1000 rows in my original table with the variable part of the rows ranging from 1 to 10 columns. This means that every row's static part can have 1-10 copies with only the last column changing. I hope the problem makes sense. I have looked at other topics in the forum and have found similar topics (transposing rows into single column), however I didn't find one with variable data in the rows, and where they dont have a static part that gets copied. Please help!
Thanks,
Sonik
I want to break down every row into multiple row where a part of it would be carried forward from the parent and the last column would be the transpose of the remaining part of the parent row. Here's an example.
Table 1 (static column A, B. variable column: C, D, E, F...):
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD="align: center"]Column A[/TD]
[TD="align: center"]Column B
[/TD]
[TD="align: center"]Column C[/TD]
[TD="align: center"]Column D[/TD]
[TD="align: center"]Column E[/TD]
[TD="align: center"]Column F[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]def[/TD]
[TD]ABC[/TD]
[TD]DEF[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]lmn[/TD]
[TD]pqr[/TD]
[TD]LMN[/TD]
[TD]PQR[/TD]
[TD]XYZ[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would want it to look like:
Table 2:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A
[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[/TR]
[TR]
[TD]abc
[/TD]
[TD]def[/TD]
[TD]ABC[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]def[/TD]
[TD]DEF[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]lmn[/TD]
[TD]pqr[/TD]
[TD]LMN[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]lmn
[/TD]
[TD]pqr[/TD]
[TD]PQR[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]lmn[/TD]
[TD]pqr[/TD]
[TD]XYZ[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
There are almost a 1000 rows in my original table with the variable part of the rows ranging from 1 to 10 columns. This means that every row's static part can have 1-10 copies with only the last column changing. I hope the problem makes sense. I have looked at other topics in the forum and have found similar topics (transposing rows into single column), however I didn't find one with variable data in the rows, and where they dont have a static part that gets copied. Please help!
Thanks,
Sonik