Greetings. I have two sets of data in the Sample below. I am looking for a way to automatically create the Outcome: each value in Column A paired with each value in Column B - creating two new datasets in Columns C and D.
The solution must work for much larger datasets. THANK YOU!!
Sample
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Up[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Down[/TD]
[TD]Yellow[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]Red[/TD]
[/TR]
</tbody>[/TABLE]
Outcome
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Up[/TD]
[TD]Red[/TD]
[TD]Up[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Down[/TD]
[TD]Yellow[/TD]
[TD]Up[/TD]
[TD]Yellow[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]Blue[/TD]
[TD]Up[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]Down[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]Down[/TD]
[TD]Yellow[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD]Down[/TD]
[TD]Blue[/TD]
[/TR]
</tbody>[/TABLE]
The solution must work for much larger datasets. THANK YOU!!
Sample
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Up[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Down[/TD]
[TD]Yellow[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]Red[/TD]
[/TR]
</tbody>[/TABLE]
Outcome
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Up[/TD]
[TD]Red[/TD]
[TD]Up[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Down[/TD]
[TD]Yellow[/TD]
[TD]Up[/TD]
[TD]Yellow[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]Blue[/TD]
[TD]Up[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]Down[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]Down[/TD]
[TD]Yellow[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD]Down[/TD]
[TD]Blue[/TD]
[/TR]
</tbody>[/TABLE]