ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pick a Random name from a list. (https://www.excelbanter.com/excel-programming/363427-pick-random-name-list.html)

David M Fritzke

Pick a Random name from a list.
 
I am working on a Free Give Away of some products. Our systems give me a
list of individuals who we have had contact which are then placed in excel.
We would like to pick a weekly winner and would prefer not to throw darts at
my screen. Any Ideas?

Mat P:son[_2_]

Pick a Random name from a list.
 
Maybe you could use a print-out of the list, a pair of scissors and a hat? :-)

Or maybe take a look at VBA's Rnd() function and Randomize statement? Rnd()
will give you a random floating point number [0, 1) The VBA help is even
kind enough to give you a formula to use to generate random numbers in the
range [lowerbound, upperbound]:

Int((upperbound - lowerbound + 1) * Rnd + lowerbound)

Randomize is used to ensure that the sequence is truly random.

Cheers,
/MP

"David M Fritzke" wrote:

I am working on a Free Give Away of some products. Our systems give me a
list of individuals who we have had contact which are then placed in excel.
We would like to pick a weekly winner and would prefer not to throw darts at
my screen. Any Ideas?


Jeff Standen[_2_]

Pick a Random name from a list.
 
And by 'truly' he means 'good enough for a raffle' :)

Jeff

"Mat P:son" wrote in message
...
Maybe you could use a print-out of the list, a pair of scissors and a hat?
:-)

Or maybe take a look at VBA's Rnd() function and Randomize statement?
Rnd()
will give you a random floating point number [0, 1) The VBA help is even
kind enough to give you a formula to use to generate random numbers in the
range [lowerbound, upperbound]:

Int((upperbound - lowerbound + 1) * Rnd + lowerbound)

Randomize is used to ensure that the sequence is truly random.

Cheers,
/MP

"David M Fritzke" wrote:

I am working on a Free Give Away of some products. Our systems give me a
list of individuals who we have had contact which are then placed in
excel.
We would like to pick a weekly winner and would prefer not to throw darts
at
my screen. Any Ideas?




David M Fritzke[_2_]

Pick a Random name from a list.
 
Thanks I will give that a try!

"Mat P:son" wrote:

Maybe you could use a print-out of the list, a pair of scissors and a hat? :-)

Or maybe take a look at VBA's Rnd() function and Randomize statement? Rnd()
will give you a random floating point number [0, 1) The VBA help is even
kind enough to give you a formula to use to generate random numbers in the
range [lowerbound, upperbound]:

Int((upperbound - lowerbound + 1) * Rnd + lowerbound)

Randomize is used to ensure that the sequence is truly random.

Cheers,
/MP

"David M Fritzke" wrote:

I am working on a Free Give Away of some products. Our systems give me a
list of individuals who we have had contact which are then placed in excel.
We would like to pick a weekly winner and would prefer not to throw darts at
my screen. Any Ideas?



All times are GMT +1. The time now is 01:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com