I'm looking for a more efficient way of combining possible duplicate rows depending on the column "Product." Some rows will not have duplicates. Here is a sample of the data I'm working with. In reality, I am working with thousands of these rows and over 40 columns
[TABLE="width: 824"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]KOMBUCHA VANILLA[/TD]
[TD][/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[/TR]
[TR]
[TD]KOMBUCHA RED[/TD]
[TD][/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[/TR]
[TR]
[TD]YOGURT DRINK[/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YOGURT DRINK[/TD]
[TD][/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[/TR]
[TR]
[TD]YOGURT BANANA 4PK[/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YOGURT BANANA 4PK[/TD]
[TD][/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[/TR]
[TR]
[TD]YOGURT BERRY 4PK[/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COFFEE[/TD]
[TD][/TD]
[TD]3.99 (3.39 SAL)[/TD]
[TD]3.99 (3.39 SAL)[/TD]
[TD]3.99 (3.39 SAL)[/TD]
[/TR]
</tbody>[/TABLE]
After combining the duplicate rows (using Product), I would achieve something like this:
[TABLE="width: 824"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]KOMBUCHA VANILLA[/TD]
[TD][/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[/TR]
[TR]
[TD]KOMBUCHA RED[/TD]
[TD][/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[/TR]
[TR]
[TD]YOGURT DRINK[/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[/TR]
[TR]
[TD]YOGURT BANANA 4PK[/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[/TR]
[TR]
[TD]COFFEE[/TD]
[TD][/TD]
[TD]3.99 (3.39 SAL)[/TD]
[TD]3.99 (3.39 SAL)[/TD]
[TD]3.99 (3.39 SAL)[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas on how I could make this process more efficient. I am currently doing this manually and it is very painful. Thanks!
[TABLE="width: 824"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]KOMBUCHA VANILLA[/TD]
[TD][/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[/TR]
[TR]
[TD]KOMBUCHA RED[/TD]
[TD][/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[/TR]
[TR]
[TD]YOGURT DRINK[/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YOGURT DRINK[/TD]
[TD][/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[/TR]
[TR]
[TD]YOGURT BANANA 4PK[/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YOGURT BANANA 4PK[/TD]
[TD][/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[/TR]
[TR]
[TD]YOGURT BERRY 4PK[/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COFFEE[/TD]
[TD][/TD]
[TD]3.99 (3.39 SAL)[/TD]
[TD]3.99 (3.39 SAL)[/TD]
[TD]3.99 (3.39 SAL)[/TD]
[/TR]
</tbody>[/TABLE]
After combining the duplicate rows (using Product), I would achieve something like this:
[TABLE="width: 824"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Product[/TD]
[TD][/TD]
[TD]Store A[/TD]
[TD]Store B[/TD]
[TD]Store C[/TD]
[/TR]
[TR]
[TD]KOMBUCHA VANILLA[/TD]
[TD][/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[/TR]
[TR]
[TD]KOMBUCHA RED[/TD]
[TD][/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[TD]3.99 (2.99 SAL)[/TD]
[/TR]
[TR]
[TD]YOGURT DRINK[/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[/TR]
[TR]
[TD]YOGURT BANANA 4PK[/TD]
[TD][/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[TD]5.99 (4.79 SAL)[/TD]
[/TR]
[TR]
[TD]COFFEE[/TD]
[TD][/TD]
[TD]3.99 (3.39 SAL)[/TD]
[TD]3.99 (3.39 SAL)[/TD]
[TD]3.99 (3.39 SAL)[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas on how I could make this process more efficient. I am currently doing this manually and it is very painful. Thanks!