I have the below values and I want to create a macro to add the duplicates and delete it.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Apple=260[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Orange=3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Banana=246[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Apple=43[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Mango=93[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Banana=4[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Melon=260[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Grape=209[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I want the result to combine the apples and banana which has duplicate values and give the total number of apples and bananas. Like below.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Apple=303[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Orange=3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Banana=250[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Mango=93[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Melon=260[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Grape=209[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks!
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Apple=260[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Orange=3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Banana=246[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Apple=43[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Mango=93[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Banana=4[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Melon=260[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Grape=209[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I want the result to combine the apples and banana which has duplicate values and give the total number of apples and bananas. Like below.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Apple=303[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Orange=3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Banana=250[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Mango=93[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"]Melon=260[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl65, width: 105"] Grape=209[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks!