Hi all,
I won't get into the reasons why, because I know people are going to try to solve for a different problem, but I have a data set that has blank rows, and the next row needs to be cut and appended to another column in the previous non-blank row.
Below is an sample data set:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]12345[/TD]
[TD]4[/TD]
[TD]No[/TD]
[TD]Green Car[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]12345[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[TD]Red[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Truck[/TD]
[TD]No[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]23456[/TD]
[TD]1[/TD]
[TD]Yes[/TD]
[TD]Blue[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Airplane[/TD]
[TD]No[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]34567[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[TD]Yellow Bike[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]34567[/TD]
[TD]1[/TD]
[TD]No[/TD]
[TD]Purple Taxi[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
I basically need the contents from A4 to be appended to D2 and the content from B4 to go into E2
I would then like to delete rows 3 and 4 and then continue doing the same thing for the rest of the data set. Output below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]12345[/TD]
[TD]4[/TD]
[TD]No[/TD]
[TD]Green Car[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]12345[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[TD]Red Truck[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]23456[/TD]
[TD]1[/TD]
[TD]Yes[/TD]
[TD]Blue Airplane[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]34567[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[TD]Yellow Bike[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]34567[/TD]
[TD]1[/TD]
[TD]No[/TD]
[TD]Purple Taxi[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
This sounds really complicated, but was hoping the experts here can help!
Thank you in advance!
I won't get into the reasons why, because I know people are going to try to solve for a different problem, but I have a data set that has blank rows, and the next row needs to be cut and appended to another column in the previous non-blank row.
Below is an sample data set:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]12345[/TD]
[TD]4[/TD]
[TD]No[/TD]
[TD]Green Car[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]12345[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[TD]Red[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Truck[/TD]
[TD]No[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]23456[/TD]
[TD]1[/TD]
[TD]Yes[/TD]
[TD]Blue[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Airplane[/TD]
[TD]No[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]34567[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[TD]Yellow Bike[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]34567[/TD]
[TD]1[/TD]
[TD]No[/TD]
[TD]Purple Taxi[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
I basically need the contents from A4 to be appended to D2 and the content from B4 to go into E2
I would then like to delete rows 3 and 4 and then continue doing the same thing for the rest of the data set. Output below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]12345[/TD]
[TD]4[/TD]
[TD]No[/TD]
[TD]Green Car[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]12345[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[TD]Red Truck[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]23456[/TD]
[TD]1[/TD]
[TD]Yes[/TD]
[TD]Blue Airplane[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]34567[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[TD]Yellow Bike[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]34567[/TD]
[TD]1[/TD]
[TD]No[/TD]
[TD]Purple Taxi[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
This sounds really complicated, but was hoping the experts here can help!
Thank you in advance!