I have survey data that requests responses from parents about the number of kids they would like registered for an activity.
[TABLE="width: 700"]
<tbody>[TR]
[TD]Parent Name[/TD]
[TD]Child 1 Name[/TD]
[TD]Child 1 T-Shirt Size[/TD]
[TD]Child 1 Birthday [/TD]
[TD]Child 2 Name[/TD]
[TD]Child 2 T-Shirt Size[/TD]
[TD]Child 2 Birthday[/TD]
[TD]Child 3 Name[/TD]
[TD]Child 3 T-Shirt Size[/TD]
[TD]Child 3 Birthday[/TD]
[TD]Child 4 Name[/TD]
[TD]Child 4 T-Shirt Size[/TD]
[TD]Child 4 Birthday[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]James Smith[/TD]
[TD]YS[/TD]
[TD]41143[/TD]
[TD]Jane Smith[/TD]
[TD]4T[/TD]
[TD]43556[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]Jason Doe[/TD]
[TD]YS[/TD]
[TD]41143[/TD]
[TD]Sarah Doe[/TD]
[TD]4T[/TD]
[TD]43556[/TD]
[TD]Sam Doe[/TD]
[TD]2T[/TD]
[TD]43556[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like to transform the data so that each child name is on a new line, but the parent name remains tied to the child in the first column.
[TABLE="width: 700"]
<tbody>[TR]
[TD]Parent Name[/TD]
[TD]Child Name[/TD]
[TD]Child T-Shirt Size[/TD]
[TD]Child Birthday[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]James Smith[/TD]
[TD]YS[/TD]
[TD]41143[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]Jane Smith[/TD]
[TD]4T[/TD]
[TD]43556[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]Jason Doe[/TD]
[TD]YS[/TD]
[TD]41143[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]Sarah Doe [/TD]
[TD]4T[/TD]
[TD]43556[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]Sam Doe [/TD]
[TD]2T[/TD]
[TD]43556[/TD]
[/TR]
</tbody>[/TABLE]
Thank you for your help!
[TABLE="width: 700"]
<tbody>[TR]
[TD]Parent Name[/TD]
[TD]Child 1 Name[/TD]
[TD]Child 1 T-Shirt Size[/TD]
[TD]Child 1 Birthday [/TD]
[TD]Child 2 Name[/TD]
[TD]Child 2 T-Shirt Size[/TD]
[TD]Child 2 Birthday[/TD]
[TD]Child 3 Name[/TD]
[TD]Child 3 T-Shirt Size[/TD]
[TD]Child 3 Birthday[/TD]
[TD]Child 4 Name[/TD]
[TD]Child 4 T-Shirt Size[/TD]
[TD]Child 4 Birthday[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]James Smith[/TD]
[TD]YS[/TD]
[TD]41143[/TD]
[TD]Jane Smith[/TD]
[TD]4T[/TD]
[TD]43556[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]Jason Doe[/TD]
[TD]YS[/TD]
[TD]41143[/TD]
[TD]Sarah Doe[/TD]
[TD]4T[/TD]
[TD]43556[/TD]
[TD]Sam Doe[/TD]
[TD]2T[/TD]
[TD]43556[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like to transform the data so that each child name is on a new line, but the parent name remains tied to the child in the first column.
[TABLE="width: 700"]
<tbody>[TR]
[TD]Parent Name[/TD]
[TD]Child Name[/TD]
[TD]Child T-Shirt Size[/TD]
[TD]Child Birthday[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]James Smith[/TD]
[TD]YS[/TD]
[TD]41143[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]Jane Smith[/TD]
[TD]4T[/TD]
[TD]43556[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]Jason Doe[/TD]
[TD]YS[/TD]
[TD]41143[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]Sarah Doe [/TD]
[TD]4T[/TD]
[TD]43556[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]Sam Doe [/TD]
[TD]2T[/TD]
[TD]43556[/TD]
[/TR]
</tbody>[/TABLE]
Thank you for your help!