Combination from Lexicographic number.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,404
Office Version
  1. 2007
Platform
  1. Windows
I'm looking for a formula that will be able to return a combination set of 5 numbers from it's lexicographic number.


For a game of 5/39 meaning 5 balls are draw from a pool of 39 balls.
This game have a total of 575757 combinations and each combination of 5 numbers are numbered from 1 to 575757 which is the " lexicographic number " meaning the rank of the combination in the whole possible combinations for this game ( I hope I make sense ? )


So the lexico # : 1 would have the 1st combination : 1 2 3 4 5


the lexico # : 2 would have the 2nd combination : 1 2 3 4 6


etc.. up to the last lexico # 575757 would have the last combination : 35 36 37 38 39


My question is, What formula would be able to return the 5 numbers combination from the Lexico number ?


Assuming my lexico is in cell A1 what would be the numbers from C1:G1 ?


Thank you.
Serge.
 

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.
Stephen and SHADO,

I made the change and it work very well now, Thank you so much for the help, I really appreciate it.
Serge.
 
Upvote 0

Forum statistics

Threads
1,215,277
Messages
6,124,010
Members
449,139
Latest member
sramesh1024

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