thelostscott
Board Regular
- Joined
- May 7, 2010
- Messages
- 226
Hi all,
I have a list of 90 names and I need to choose 30 random people out of this list. I want this to be as fair as possible and at the moment I am running a RAND() formula in the next cell with this formula next to it:
=IF($E2>=RANDBETWEEN(0,1),TRUE,"")
Problem is that it returns a certain number of TRUE cells between 33-51 and not the 30 I am needing. Is there any other way of doing this?
I was thinking of running a macro to generate these random numbers until it hits 30 and then stop but can't figure out a code to do so?
Any thoughts/help would be appreciated.
Many thanks!
I have a list of 90 names and I need to choose 30 random people out of this list. I want this to be as fair as possible and at the moment I am running a RAND() formula in the next cell with this formula next to it:
=IF($E2>=RANDBETWEEN(0,1),TRUE,"")
Problem is that it returns a certain number of TRUE cells between 33-51 and not the 30 I am needing. Is there any other way of doing this?
I was thinking of running a macro to generate these random numbers until it hits 30 and then stop but can't figure out a code to do so?
Any thoughts/help would be appreciated.
Many thanks!