fboehlandt
Active Member
- Joined
- Sep 9, 2008
- Messages
- 334
Hi everyone.
Upfront, apologies for the millionth question regarding permutations / combinations. I'm referring to this thread below about permutations and combinations:
http://www.mrexcel.com/forum/showthread.php?t=510330&highlight=permutation+ABC
I have noted that the suggested VBA code does not make provisions for cases where the order is important and the objective is to create combinations. For example, k = 2 out of n = 5 where the elements are A B C D E would yield:
AB
AC
AD
...
DE
In some instance, however, DE may not equal ED. Consequently, the combinations should end on ED. Does anybody have a suggestion or code snippet doing exactly that?
Upfront, apologies for the millionth question regarding permutations / combinations. I'm referring to this thread below about permutations and combinations:
http://www.mrexcel.com/forum/showthread.php?t=510330&highlight=permutation+ABC
I have noted that the suggested VBA code does not make provisions for cases where the order is important and the objective is to create combinations. For example, k = 2 out of n = 5 where the elements are A B C D E would yield:
AB
AC
AD
...
DE
In some instance, however, DE may not equal ED. Consequently, the combinations should end on ED. Does anybody have a suggestion or code snippet doing exactly that?