permutations

goggem

New Member
Joined
Apr 28, 2007
Messages
30
I would like to make a function based off a number, that arranges the digits 1 through 9 in all possible combinations.

Example:

1 2 3 4 5 6 7 8 9 1
1 2 3 4 5 6 7 9 8 2
1 2 3 4 5 6 8 7 9 3
1 2 3 4 5 6 8 9 7 4
1 2 3 4 5 6 9 7 8 5
1 2 3 4 5 6 9 8 7 6
1 2 3 4 5 7 6 8 9 7
1 2 3 4 5 7 6 9 8 8
1 2 3 4 5 7 8 6 9 9
1 2 3 4 5 7 8 9 6 10
1 2 3 4 5 7 9 6 8 11
1 2 3 4 5 7 9 8 6 12

So the first nine digits, should be calculated with a formula, based off the number at the end (which goes from 1 - 12)

Any insight would be appreciated,
Thanks!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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