chelseajonesy
New Member
- Joined
- Mar 13, 2014
- Messages
- 4
I have searched all over the internet but am having trouble finding the answer to my problem. I would like to write a macro that will list the possible permutations of a column, in the column right next to it. For instance, see columns 1 and 2:
[TABLE="class: grid, width: 50"]
<tbody>[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]Permutation1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD]Permutation1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]3[/TD]
[TD]Permutation1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Permutation2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]Permutation2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Permutation2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Permutation3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Permutation3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]Permutation3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Permutation4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]Permutation4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Permutation4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]Permutation5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Permutation5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Permutation5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]Permutation6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Permutation6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Permutation6[/TD]
[/TR]
</tbody>[/TABLE]
Obviously column 3 is just labeling permutations, I just need a code for columns 1 and 2. Thanks in advance!!
[TABLE="class: grid, width: 50"]
<tbody>[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]Permutation1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD]Permutation1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]3[/TD]
[TD]Permutation1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Permutation2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]Permutation2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Permutation2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Permutation3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Permutation3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]Permutation3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Permutation4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]Permutation4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Permutation4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]Permutation5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Permutation5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Permutation5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD]Permutation6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2[/TD]
[TD]Permutation6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Permutation6[/TD]
[/TR]
</tbody>[/TABLE]
Obviously column 3 is just labeling permutations, I just need a code for columns 1 and 2. Thanks in advance!!