Hello All!
I have a table with date in two columns (D&E) that have linked delimited data. If column D has 2 values separated by a "|" delimiter, then column E will have the same number of delimited values.
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]51[/TD]
[TD]Bob[/TD]
[TD]PPV[/TD]
[TD]15[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]61[/TD]
[TD]James[/TD]
[TD]CHH[/TD]
[TD]30|16|5[/TD]
[TD]17|5|8[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]Steve[/TD]
[TD]PPV[/TD]
[TD]55|2[/TD]
[TD]-14|125[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ivan[/TD]
[TD]DCh[/TD]
[TD]6[/TD]
[TD]-7[/TD]
[/TR]
</tbody>[/TABLE]
I'd like the table to look like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]51[/TD]
[TD]Bob[/TD]
[TD]ppv[/TD]
[TD]15[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]61[/TD]
[TD]James[/TD]
[TD]CHH[/TD]
[TD]30[/TD]
[TD]17[/TD]
[/TR]
[TR]
[TD]61[/TD]
[TD]James[/TD]
[TD]CHH[/TD]
[TD]16[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]61[/TD]
[TD]James[/TD]
[TD]CHH[/TD]
[TD]5[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]Steve[/TD]
[TD]PPV[/TD]
[TD]55[/TD]
[TD]-14[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]Steve[/TD]
[TD]PPV[/TD]
[TD]2[/TD]
[TD]125[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ivan[/TD]
[TD]DCh[/TD]
[TD]6[/TD]
[TD]-7[/TD]
[/TR]
</tbody>[/TABLE]
I'd like a macro to help out, as this process will be occurring weekly with a few thousand rows...
I've seen a few examples on here- but nothing with the two linked columns.
Thank you all in advance for your brain power!
Eric
I have a table with date in two columns (D&E) that have linked delimited data. If column D has 2 values separated by a "|" delimiter, then column E will have the same number of delimited values.
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]51[/TD]
[TD]Bob[/TD]
[TD]PPV[/TD]
[TD]15[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]61[/TD]
[TD]James[/TD]
[TD]CHH[/TD]
[TD]30|16|5[/TD]
[TD]17|5|8[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]Steve[/TD]
[TD]PPV[/TD]
[TD]55|2[/TD]
[TD]-14|125[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ivan[/TD]
[TD]DCh[/TD]
[TD]6[/TD]
[TD]-7[/TD]
[/TR]
</tbody>[/TABLE]
I'd like the table to look like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]51[/TD]
[TD]Bob[/TD]
[TD]ppv[/TD]
[TD]15[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]61[/TD]
[TD]James[/TD]
[TD]CHH[/TD]
[TD]30[/TD]
[TD]17[/TD]
[/TR]
[TR]
[TD]61[/TD]
[TD]James[/TD]
[TD]CHH[/TD]
[TD]16[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]61[/TD]
[TD]James[/TD]
[TD]CHH[/TD]
[TD]5[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]Steve[/TD]
[TD]PPV[/TD]
[TD]55[/TD]
[TD]-14[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]Steve[/TD]
[TD]PPV[/TD]
[TD]2[/TD]
[TD]125[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ivan[/TD]
[TD]DCh[/TD]
[TD]6[/TD]
[TD]-7[/TD]
[/TR]
</tbody>[/TABLE]
I'd like a macro to help out, as this process will be occurring weekly with a few thousand rows...
I've seen a few examples on here- but nothing with the two linked columns.
Thank you all in advance for your brain power!
Eric