ststern45
Well-known Member
- Joined
- Sep 17, 2005
- Messages
- 974
- Office Version
- 365
- 2010
- Platform
- Windows
My question is as follows:
1. In a lottery game 5/39 where 5 balls are drawn from a pool of 39 balls.
=combin(39,5) = 575757 Total Combinations
2. I have an Excel worksheet that has the following:
Cells A4 through E4 I enter 5 numbers 1, 2, 3, 4, 5 and in cell F4 I have the Lexigraphic value = 000001
=COMBIN(39,5)
-IF(35-A4>0,COMBIN(39-A4,5),0)
-IF(36-B4>0,COMBIN(39-B4,4),0)
-IF(37-C4>0,COMBIN(39-C4,3),0)
-IF(38-D4>0,COMBIN(39-D4,2),0)
-IF(39-E4>0,COMBIN(39-E4,1),0)
3. Is there a way to reverse this by entering a random Lexigraphic value in Cell F5 and have the 5 digit combination appear in cell range A5 through E5?
The only possible solution is to have a worksheet with all the possible combinations (575757) in 10 columns and perform a Lookup?
Any suggestions??
Thanks,
Steve
1. In a lottery game 5/39 where 5 balls are drawn from a pool of 39 balls.
=combin(39,5) = 575757 Total Combinations
2. I have an Excel worksheet that has the following:
Cells A4 through E4 I enter 5 numbers 1, 2, 3, 4, 5 and in cell F4 I have the Lexigraphic value = 000001
=COMBIN(39,5)
-IF(35-A4>0,COMBIN(39-A4,5),0)
-IF(36-B4>0,COMBIN(39-B4,4),0)
-IF(37-C4>0,COMBIN(39-C4,3),0)
-IF(38-D4>0,COMBIN(39-D4,2),0)
-IF(39-E4>0,COMBIN(39-E4,1),0)
3. Is there a way to reverse this by entering a random Lexigraphic value in Cell F5 and have the 5 digit combination appear in cell range A5 through E5?
The only possible solution is to have a worksheet with all the possible combinations (575757) in 10 columns and perform a Lookup?
Any suggestions??
Thanks,
Steve