Hi All,
I need to organize some data coming from a raw spreadsheet into a separated table as displayed below.
[TABLE="width: 341"]
<colgroup><col span="2"><col><col span="3"></colgroup><tbody>[TR]
[TD]Raw Data[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]Rearranged Table[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Green[/TD]
[TD][/TD]
[TD]Green[/TD]
[TD]Green[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Red[/TD]
[TD][/TD]
[TD]Red[/TD]
[TD]Orange[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Blue[/TD]
[TD][/TD]
[TD]Blue[/TD]
[TD]Red[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Green[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Orange[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Red[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Blue[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Green[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Red[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
RAW DATA: Column A represents countries and column B shows the products sold to each country.
I tried to use VLOOKUP and INDEX/MATCH, but both do not produce the expected results. Also tried using PivotTable, but no satisfactory results as well.
Any assistance is much appreciated.
Cris
I need to organize some data coming from a raw spreadsheet into a separated table as displayed below.
[TABLE="width: 341"]
<colgroup><col span="2"><col><col span="3"></colgroup><tbody>[TR]
[TD]Raw Data[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]Rearranged Table[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Green[/TD]
[TD][/TD]
[TD]Green[/TD]
[TD]Green[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Red[/TD]
[TD][/TD]
[TD]Red[/TD]
[TD]Orange[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Blue[/TD]
[TD][/TD]
[TD]Blue[/TD]
[TD]Red[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Green[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Orange[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Red[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Blue[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Green[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Red[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
RAW DATA: Column A represents countries and column B shows the products sold to each country.
I tried to use VLOOKUP and INDEX/MATCH, but both do not produce the expected results. Also tried using PivotTable, but no satisfactory results as well.
Any assistance is much appreciated.
Cris