palaeontology
Active Member
- Joined
- May 12, 2017
- Messages
- 444
- Office Version
- 2016
- Platform
- Windows
I have the following dynamic list (and yes, the list can sometimes [like in this example] have some blank entries at the beginning) ...
Is there a way (either through formula or vb code .. I'm trying to avoid the need for the user to click a series of ribbon options, etc) to return a list of all possible unique combinations of letters from that list ?
For example, the unique combinations for the list above would be ....
BK
BO
KO
Note: I don't want BB, KK or OO to be returned.
Here's another example ...
This list should yield the following unique combinations ...
RG
RA
RF
RJ
GA
GF
GJ
AF
AJ
FJ
I've tried to set up a matrix solution, but not sure how to do that in excel, or even if that will return the result that I need.
I know that the number of unique combinations follows Pascal's Triangle. So ...
2 letters will have 1 possible combination
3 letters will have 3 possible combination
4 letters will have 6 possible combination
5 letters will have 10 possible combination
etc
but not sure how to use that knowledge in deriving a solution.
Any assistance would be greatly appreciated.
Very kind regards,
Chris
Is there a way (either through formula or vb code .. I'm trying to avoid the need for the user to click a series of ribbon options, etc) to return a list of all possible unique combinations of letters from that list ?
For example, the unique combinations for the list above would be ....
BK
BO
KO
Note: I don't want BB, KK or OO to be returned.
Here's another example ...
This list should yield the following unique combinations ...
RG
RA
RF
RJ
GA
GF
GJ
AF
AJ
FJ
I've tried to set up a matrix solution, but not sure how to do that in excel, or even if that will return the result that I need.
I know that the number of unique combinations follows Pascal's Triangle. So ...
2 letters will have 1 possible combination
3 letters will have 3 possible combination
4 letters will have 6 possible combination
5 letters will have 10 possible combination
etc
but not sure how to use that knowledge in deriving a solution.
Any assistance would be greatly appreciated.
Very kind regards,
Chris