It's actually needs to be automated and therefore in code. The C & D are variables that are created once the data is transposed.../QUOTE]
Josh, before we can answer your question, we have to know what you want.
You start off with:
A B
1 1
1 2
2 3
2 4
2 5
3 6
Therefore you should end up with the same thing, since all you want to do is rearrange your data. In the end there should be A,B, 1(3x), 2(4x), 3(2x), 5, 6... and NO C or D.
Is it possible that you want something like this instead:
A 1 1 2 2 2 3
B 1 2 3 4 5 6