Hi,
I am looking for a code that will help with what I want to achieve. I have a table where I have to split a column using text-to-columns. The number of columns created after will vary time to time.
What I now want to do is copy the rows to a certain column and then for each of the columns created after text-to-column, input the data and repeat the process until the last create column has data.
e.g my table looks like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Items[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Table,Chairs,Desk,Stapler[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]R Bear[/TD]
[TD]Chair[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]P Parrot[/TD]
[TD]Desk,Table[/TD]
[/TR]
</tbody>[/TABLE]
So I need to split the items columns which will then show my table as:
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Item1[/TD]
[TD]Item2[/TD]
[TD]Item3[/TD]
[TD]Item4[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Table[/TD]
[TD]Chairs[/TD]
[TD]Desk[/TD]
[TD]Stapler[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]R Bear[/TD]
[TD]Chair[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]P Parrot[/TD]
[TD]Desk[/TD]
[TD]Table[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So I now want to be able to copy the id and names and bring back the items until the last cell so my end table will look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Item[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Table[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]R Bear[/TD]
[TD]Chair[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]P Parrot[/TD]
[TD]Desk[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Chairs[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]P Parrot[/TD]
[TD]Table[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Desk[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Stapler[/TD]
[/TR]
</tbody>[/TABLE]
I might be asking a lot for this to happen but wondered if there was a way this could be achieved.
Appreciate any help that is given.
Kind regards
Hetal
I am looking for a code that will help with what I want to achieve. I have a table where I have to split a column using text-to-columns. The number of columns created after will vary time to time.
What I now want to do is copy the rows to a certain column and then for each of the columns created after text-to-column, input the data and repeat the process until the last create column has data.
e.g my table looks like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Items[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Table,Chairs,Desk,Stapler[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]R Bear[/TD]
[TD]Chair[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]P Parrot[/TD]
[TD]Desk,Table[/TD]
[/TR]
</tbody>[/TABLE]
So I need to split the items columns which will then show my table as:
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Item1[/TD]
[TD]Item2[/TD]
[TD]Item3[/TD]
[TD]Item4[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Table[/TD]
[TD]Chairs[/TD]
[TD]Desk[/TD]
[TD]Stapler[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]R Bear[/TD]
[TD]Chair[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]P Parrot[/TD]
[TD]Desk[/TD]
[TD]Table[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So I now want to be able to copy the id and names and bring back the items until the last cell so my end table will look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Item[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Table[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]R Bear[/TD]
[TD]Chair[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]P Parrot[/TD]
[TD]Desk[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Chairs[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]P Parrot[/TD]
[TD]Table[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Desk[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]J Bloggs[/TD]
[TD]Stapler[/TD]
[/TR]
</tbody>[/TABLE]
I might be asking a lot for this to happen but wondered if there was a way this could be achieved.
Appreciate any help that is given.
Kind regards
Hetal