[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_title[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_excerpt[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_status[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visibility[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]stock_status[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]regular_price[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 268"]
<tbody>[TR]
[TD="width: 268"]taxroduct_cat[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_model[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_alternative-part-numbers[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_part-type[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]example product A[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]screw[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64, align: center"]0.18[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Commander[/TD]
[TD]Commander[/TD]
[TD][/TD]
[TD]Screw-Bottom[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]example product A[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]screw[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64, align: center"]0.18[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Highway 3[/TD]
[TD]Highway 3[/TD]
[TD][/TD]
[TD]Screw-Bottom[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]example product A[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]screw[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64, align: center"]0.18[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Highway[/TD]
[TD]Highway[/TD]
[TD][/TD]
[TD]Screw-Bottom[/TD]
[/TR]
[TR]
[TD]example product B[/TD]
[TD]blade[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]20[/TD]
[TD]Parkway[/TD]
[TD]Parkway[/TD]
[TD][/TD]
[TD]blade7[/TD]
[/TR]
[TR]
[TD]example product B[/TD]
[TD]blade[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]20[/TD]
[TD]Parkway2[/TD]
[TD]Parkway2[/TD]
[TD][/TD]
[TD]blade7[/TD]
[/TR]
[TR]
[TD]example product C[/TD]
[TD]disc[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]15[/TD]
[TD]Mounted[/TD]
[TD]Mounted[/TD]
[TD][/TD]
[TD]blade10[/TD]
[/TR]
[TR]
[TD]example product C[/TD]
[TD]disc[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]15[/TD]
[TD]Mounted5[/TD]
[TD]Mounted5[/TD]
[TD][/TD]
[TD]blade10[/TD]
[/TR]
[TR]
[TD]example product C[/TD]
[TD]disc[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]15[/TD]
[TD]Mounted9[/TD]
[TD]Mounted9[/TD]
[TD][/TD]
[TD]blade11[/TD]
[/TR]
[TR]
[TD]example product C[/TD]
[TD]disc[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]15[/TD]
[TD]Motor7[/TD]
[TD]Motor7[/TD]
[TD][/TD]
[TD]blade15[/TD]
[/TR]
</tbody>[/TABLE]
Hi I've got a set of product data, as demonstrated above. I somehow need to merge the products if they are duplicated while retaining certain data.
So for example if example product A is found more than once then I need to merge all instances of example product A into one row.
The taxroduct_cat column and attribute: pa_model column will always contain different values for each instance of the same product. I can just replicate the attribute: pa_part-type column from the taxroduct_cat column so that cab be ignored. However I need to merge the taxroduct_cat column and retain all values.
So in the example data shown above for example product A the taxroduct_cat column would merge to show Commander|Highway 3|Highway
The attribute: pa_part-type column will sometimes be different as well. However I only need to keep the values if they are different. For example the example product A row would just show Screw-Bottom as they are all the same. However example product C would show blade10|blade11|blade15
Below is an example of how the above data should look
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_title[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_excerpt[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_status[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visibility[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]stock_status[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]regular_price[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 268"]
<tbody>[TR]
[TD="width: 268"]taxroduct_cat[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_model[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_alternative-part-numbers[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_part-type[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]example product A[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]screw[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64, align: center"]0.18[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Commander|Highway 3|Highway[/TD]
[TD]Commander|Highway 3|Highway[/TD]
[TD][/TD]
[TD]Screw-Bottom[/TD]
[/TR]
[TR]
[TD]example product B[/TD]
[TD]blade[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]20[/TD]
[TD]Parkway|Parkway2[/TD]
[TD]Parkway|Parkway2[/TD]
[TD][/TD]
[TD]blade7[/TD]
[/TR]
[TR]
[TD]example product C[/TD]
[TD]disc[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]15[/TD]
[TD]Mounted|Mounted5|Mounted9|Motor7[/TD]
[TD]Mounted|Mounted5|Mounted9|Motor7[/TD]
[TD][/TD]
[TD]blade10|blade11|blade15[/TD]
[/TR]
</tbody>[/TABLE]
I'm usually pretty good at finding similar posts and copying or tweaking code for my needs but I'm not even sure where to start on this one. There will be thousands of products so a VBA script to acheive this would be ideal.
Any assistance would be greatly appreciated.
<tbody>[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_title[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_excerpt[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_status[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visibility[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]stock_status[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]regular_price[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 268"]
<tbody>[TR]
[TD="width: 268"]taxroduct_cat[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_model[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_alternative-part-numbers[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_part-type[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]example product A[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]screw[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64, align: center"]0.18[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Commander[/TD]
[TD]Commander[/TD]
[TD][/TD]
[TD]Screw-Bottom[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]example product A[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]screw[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64, align: center"]0.18[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Highway 3[/TD]
[TD]Highway 3[/TD]
[TD][/TD]
[TD]Screw-Bottom[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]example product A[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]screw[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64, align: center"]0.18[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Highway[/TD]
[TD]Highway[/TD]
[TD][/TD]
[TD]Screw-Bottom[/TD]
[/TR]
[TR]
[TD]example product B[/TD]
[TD]blade[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]20[/TD]
[TD]Parkway[/TD]
[TD]Parkway[/TD]
[TD][/TD]
[TD]blade7[/TD]
[/TR]
[TR]
[TD]example product B[/TD]
[TD]blade[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]20[/TD]
[TD]Parkway2[/TD]
[TD]Parkway2[/TD]
[TD][/TD]
[TD]blade7[/TD]
[/TR]
[TR]
[TD]example product C[/TD]
[TD]disc[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]15[/TD]
[TD]Mounted[/TD]
[TD]Mounted[/TD]
[TD][/TD]
[TD]blade10[/TD]
[/TR]
[TR]
[TD]example product C[/TD]
[TD]disc[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]15[/TD]
[TD]Mounted5[/TD]
[TD]Mounted5[/TD]
[TD][/TD]
[TD]blade10[/TD]
[/TR]
[TR]
[TD]example product C[/TD]
[TD]disc[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]15[/TD]
[TD]Mounted9[/TD]
[TD]Mounted9[/TD]
[TD][/TD]
[TD]blade11[/TD]
[/TR]
[TR]
[TD]example product C[/TD]
[TD]disc[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]15[/TD]
[TD]Motor7[/TD]
[TD]Motor7[/TD]
[TD][/TD]
[TD]blade15[/TD]
[/TR]
</tbody>[/TABLE]
Hi I've got a set of product data, as demonstrated above. I somehow need to merge the products if they are duplicated while retaining certain data.
So for example if example product A is found more than once then I need to merge all instances of example product A into one row.
The taxroduct_cat column and attribute: pa_model column will always contain different values for each instance of the same product. I can just replicate the attribute: pa_part-type column from the taxroduct_cat column so that cab be ignored. However I need to merge the taxroduct_cat column and retain all values.
So in the example data shown above for example product A the taxroduct_cat column would merge to show Commander|Highway 3|Highway
The attribute: pa_part-type column will sometimes be different as well. However I only need to keep the values if they are different. For example the example product A row would just show Screw-Bottom as they are all the same. However example product C would show blade10|blade11|blade15
Below is an example of how the above data should look
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_title[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_excerpt[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]post_status[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visibility[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]stock_status[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]regular_price[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 268"]
<tbody>[TR]
[TD="width: 268"]taxroduct_cat[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_model[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_alternative-part-numbers[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]attribute: pa_part-type[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]example product A[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]screw[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64, align: center"]0.18[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Commander|Highway 3|Highway[/TD]
[TD]Commander|Highway 3|Highway[/TD]
[TD][/TD]
[TD]Screw-Bottom[/TD]
[/TR]
[TR]
[TD]example product B[/TD]
[TD]blade[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]20[/TD]
[TD]Parkway|Parkway2[/TD]
[TD]Parkway|Parkway2[/TD]
[TD][/TD]
[TD]blade7[/TD]
[/TR]
[TR]
[TD]example product C[/TD]
[TD]disc[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]publish[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]visible[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]instock[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"]15[/TD]
[TD]Mounted|Mounted5|Mounted9|Motor7[/TD]
[TD]Mounted|Mounted5|Mounted9|Motor7[/TD]
[TD][/TD]
[TD]blade10|blade11|blade15[/TD]
[/TR]
</tbody>[/TABLE]
I'm usually pretty good at finding similar posts and copying or tweaking code for my needs but I'm not even sure where to start on this one. There will be thousands of products so a VBA script to acheive this would be ideal.
Any assistance would be greatly appreciated.