Excel_can_do_that
New Member
- Joined
- Oct 15, 2021
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Long time reader first time asker!
I have a set of data and I am looking to generate a list of the combinations, I have found VBA and formulas but can't seem to get it right. It is similar to the Cartesian Product but rather than it being one from each list, there are multiples from each list.
For the example, for the data below I require 2 x West, 4 x North, 1 x South and 5 x East, however if a letter is used in one list it then cannot be used in any of the other lists (e.g. If D is in a combination as West it can't be also in there for North).
Any guidance is appreciated! ?
I have a set of data and I am looking to generate a list of the combinations, I have found VBA and formulas but can't seem to get it right. It is similar to the Cartesian Product but rather than it being one from each list, there are multiples from each list.
For the example, for the data below I require 2 x West, 4 x North, 1 x South and 5 x East, however if a letter is used in one list it then cannot be used in any of the other lists (e.g. If D is in a combination as West it can't be also in there for North).
Any guidance is appreciated! ?
West | North | South | East |
D | D | A | A |
E | E | B | B |
F | H | C | C |
G | I | F | |
J | G | ||
K | H | ||
L | I | ||
J | |||
K | |||
L |