Link to home
Start Free TrialLog in
Avatar of Christopher Wright
Christopher WrightFlag for United States of America

asked on

Combinations/Permutations

Greetings Everyone.  I have attached a workbook that I created to breakout unique Part Numbers Based on Size Options and Color Codes.  It seems pretty clunky so I know there has to be a better way to code this than what I have done.  Can someone provide some feedback for learning here?  Thanks!
Permutations1.7.3.xls
Avatar of d-glitch
d-glitch
Flag of United States of America image

You need all the data (and so do we).

What are the possible colors and sizes?
Do you need a serial number as well?  Or do all the red, size 10 shirts have the same Part No.
ASKER CERTIFIED SOLUTION
Avatar of d-glitch
d-glitch
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Christopher Wright

ASKER

Hi d-glitch.  The base part numbers are dynamic.  They vary depending on the manufacturer we are dealing with.  The same applies to the Size Options and Color Codes.  Maybe I should have went with a free text for all columns.  Would that have been a better approach?

Also, I should not have placed the word permutation in the title since I am really going after combinations.  None of the values change, I am simply looking for a concatenated list that has all three columns combined in every possible combination.
Did you try to adapt that recursive function to your code?
I am still tinkering with it a bit.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great help from everyone.  I took a little from each and ultimately finished with a database.  Thanks for all of your help Gents!