rspecianjr
New Member
- Joined
- Mar 30, 2011
- Messages
- 3
Hey everyone!
It's my first time on this forum and first of all I wanted to say thank you so much for being such a wealth of knowledge! I have learned so much from all of you!
To the problem. I am working on a lottery style workbook for my boss and I need to figure out how to generate random numbers between two numbers no including numbers that have already been picked. This workbook will be run on both a Windows machine and a Mac machine, so a Macro is out of the question.
I feel like I am really close but just can't quite figure it out. I am trying to use an array formula, here is what I have:
G3:K3 house the numbers for the Lottery. The above would be the formula found in H3. The only problem with the above formula is it will produce FALSE.
I really appreciate any help you can give me on this!
Many thanks,
Robert D. Specian Jr.
EDIT: Excel 2007 on Windows 7 and Excel 2008 on Mac OSX 10.6
It's my first time on this forum and first of all I wanted to say thank you so much for being such a wealth of knowledge! I have learned so much from all of you!
To the problem. I am working on a lottery style workbook for my boss and I need to figure out how to generate random numbers between two numbers no including numbers that have already been picked. This workbook will be run on both a Windows machine and a Mac machine, so a Macro is out of the question.
I feel like I am really close but just can't quite figure it out. I am trying to use an array formula, here is what I have:
Code:
=INDEX(IF(ROW(A1:A59)<>G3,ROW(A1:A59)),INT(RAND()*58+1),1)
G3:K3 house the numbers for the Lottery. The above would be the formula found in H3. The only problem with the above formula is it will produce FALSE.
I really appreciate any help you can give me on this!
Many thanks,
Robert D. Specian Jr.
EDIT: Excel 2007 on Windows 7 and Excel 2008 on Mac OSX 10.6
Last edited: