I have a requirement as below: Each row might have multiple data (comma seperated). Based on comma as delimiter, I want to have those many rows inserted below and each row should have one color and one data combination. Can someone please help me on this.
In the below example,where Red has 3 data elements (a1,a2, a3) -> It should create 2 more rows and copy Red and have one data element for each row.
Either it can copy in the same sheet or have the o/p table in a new sheet. Appreciate help on this
[TABLE="width: 133"]
<tbody>[TR]
[TD]Col1[/TD]
[TD]Col2[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]A1, A2, A3[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]A4, A5[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]A1, A2[/TD]
[/TR]
[TR]
[TD]White[/TD]
[TD]A6[/TD]
[/TR]
</tbody>[/TABLE]
Output should be:
[TABLE="width: 133"]
<tbody>[TR]
[TD]Col11[/TD]
[TD]Col2[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]A1[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]A2[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]A3[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]A4[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]A5[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]A1[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]A2[/TD]
[/TR]
[TR]
[TD]White[/TD]
[TD]A6[/TD]
[/TR]
</tbody>[/TABLE]
In the below example,where Red has 3 data elements (a1,a2, a3) -> It should create 2 more rows and copy Red and have one data element for each row.
Either it can copy in the same sheet or have the o/p table in a new sheet. Appreciate help on this
[TABLE="width: 133"]
<tbody>[TR]
[TD]Col1[/TD]
[TD]Col2[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]A1, A2, A3[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]A4, A5[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]A1, A2[/TD]
[/TR]
[TR]
[TD]White[/TD]
[TD]A6[/TD]
[/TR]
</tbody>[/TABLE]
Output should be:
[TABLE="width: 133"]
<tbody>[TR]
[TD]Col11[/TD]
[TD]Col2[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]A1[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]A2[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]A3[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]A4[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]A5[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]A1[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]A2[/TD]
[/TR]
[TR]
[TD]White[/TD]
[TD]A6[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: