Permutations/ combinations problem

Dave_t

New Member
Joined
Jul 14, 2011
Messages
2
Hi there,

I have a problem in which I have to list all the possible combinations of a series of numbers starting with 1 and going to 12, or 15, for example. I need to list all the possible combinations using any 2, 3, 4 or 5 of those numbers. Furthermore, a number can only be used once in a combination, so for example, I couldn't have 1,2,3,4,4 as 4 is being used twice.

For example, using 12 different numbers in 3-number combinations:
1,2,3
1,2,4
1,2,5
...
1,2,12
1,3,2
1,3,4
1,3,5
...
1,3,12
...
10,11,12
10,12,11
11,10,12
11,12,10
12,11,10
12,10,11

The ordering of the different combinations isn't important, I just need to all possibilities. I have investigated the permutation function in Excel, but it just lists how many permutations there are - this is of no use to me. - Have I made my problem clear?

Can anyone help me on this? I've been struggling over it for days but am sure there is an easy fix out there somewhere. Possible someone else has even had the same problem in the past...?

Many thanks in advance!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top