I'm impressed with stuff here for listing combinations. I may not understand the code, but it's impressive. I've read
some threads that mention the Myrna Larson code for Combinations, but I have no idea how it works, how to implement it or if it's the best way to do combinations for my issue. The threads I read were pretty old.
My problem:
To start, I want to list the possible 9-number combinations of the following set of numbers:
1, 2, 3, 4 , 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 and 20.
So, for example, the results would read something like this:
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 10
1 2 3 4 5 6 7 8 11
1 2 3 4 5 6 7 8 12
1 2 3 4 5 6 7 8 13...
up to 12, 13, 14, 15, 16, 17, 18, 19, 20
I know there are modules out there that do this, but just wanted to see if someone would point out to me the most user friendly ones. I use Excel 2007 at home, but have 2003 at the office.
I got a pretty good answer from user shg at Excel forums. He pointed me to the file at:
https://www.box.com/s/b9b9fc06beb63b9562f9
The deal with the results in that spreadsheet are:
1. All the combinations are 'dumped' into one cell. I'd like the groups to have the individual members of that group to each be assigned to an their own individual cell.
2. In that spreadsheet, they're presented in the inverse order I would want them.
Instead of, in the case of 4-number groups :
1 2 3 4
1 2 3 5
1 2 3 6
1 2 3 7...
You get:
<tbody>
</tbody>
What I do like about that spreadsheet is that since eventually I'd like to form 5-number, 6-number, 7-number and 8-number goups, I can create them because the spreadsheet lets me choose the amount of items in the group.
Anybody have any spreadsheets, code or macros they recommend? Please let me know. By the way, I'm new to this, so please spare no description to what I have to do (Copy the code to a new module, download a spreadsheet...) Thanks!
some threads that mention the Myrna Larson code for Combinations, but I have no idea how it works, how to implement it or if it's the best way to do combinations for my issue. The threads I read were pretty old.
My problem:
To start, I want to list the possible 9-number combinations of the following set of numbers:
1, 2, 3, 4 , 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 and 20.
So, for example, the results would read something like this:
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 10
1 2 3 4 5 6 7 8 11
1 2 3 4 5 6 7 8 12
1 2 3 4 5 6 7 8 13...
up to 12, 13, 14, 15, 16, 17, 18, 19, 20
I know there are modules out there that do this, but just wanted to see if someone would point out to me the most user friendly ones. I use Excel 2007 at home, but have 2003 at the office.
I got a pretty good answer from user shg at Excel forums. He pointed me to the file at:
https://www.box.com/s/b9b9fc06beb63b9562f9
The deal with the results in that spreadsheet are:
1. All the combinations are 'dumped' into one cell. I'd like the groups to have the individual members of that group to each be assigned to an their own individual cell.
2. In that spreadsheet, they're presented in the inverse order I would want them.
Instead of, in the case of 4-number groups :
1 2 3 4
1 2 3 5
1 2 3 6
1 2 3 7...
You get:
4 3 2 1 |
5 3 2 1 |
5 4 2 1 |
5 4 3 1 |
<tbody>
</tbody>
What I do like about that spreadsheet is that since eventually I'd like to form 5-number, 6-number, 7-number and 8-number goups, I can create them because the spreadsheet lets me choose the amount of items in the group.
Anybody have any spreadsheets, code or macros they recommend? Please let me know. By the way, I'm new to this, so please spare no description to what I have to do (Copy the code to a new module, download a spreadsheet...) Thanks!