I have 120 variables that I need to write all possible combi
I have 1-20 variables that I need to write all possible combinations in Excel. I use the combin funtion & run this function 20 times. This gives me combin(20,1), combin(20,2), combin(20,3) & so on until combin(20,20). The total comes to 1,048,575 possible combinations. Pls advise how to write all these, I assume there is a technique similar to writing permutations. This would be 20 columns & 1,048,575 rows.
Solution
THe command you use is perfect. I write this in a excel format
| Variable | Combination | Permutation |
| 1 | 20 | 20 |
| 2 | 190 | 380 |
| 3 | 1140 | 6840 |
| 4 | 4845 | 116280 |
| 5 | 15504 | 1860480 |
| 6 | 38760 | 27907200 |
| 7 | 77520 | 390700800 |
| 8 | 125970 | 5079110400 |
| 9 | 167960 | 60949324800 |
| 10 | 184756 | 6.70443E+11 |
| 11 | 167960 | 6.70443E+12 |
| 12 | 125970 | 6.03398E+13 |
| 13 | 77520 | 4.82719E+14 |
| 14 | 38760 | 3.37903E+15 |
| 15 | 15504 | 2.02742E+16 |
| 16 | 4845 | 1.01371E+17 |
| 17 | 1140 | 4.05484E+17 |
| 18 | 190 | 1.21645E+18 |
| 19 | 20 | 2.4329E+18 |
| 20 | 1 | 2.4329E+18 |
