Create Random Generated Sweepstakes

LonelyITGuy

New Member
Joined
Oct 29, 2010
Messages
3
Hi All

New to this forum and first time poster. So please play nice.

I'm wanting to setup a excel spreadsheet that can act as a randomn generated sweepstake. You know the one. All names get put in a hat and each person takes one out that is there. There are no duplicates.

I had a look at the spinning wheel concept on the forum and thought a similar thing might do the job. However once the ball lands on a number it is then withdrawn from the next persons try.

Thus giving people a chance to draw the top sweepstake. Is anyone bored enough to help me out.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi & welcome to the Board!

How about something like this?

Column A is the list of names. Column B & C are helper columns.

Column F contains randomly selected names from the list (without duplicates). The list will change every time you press F9 (calculate).

Excel Workbook
ABCDEF
1Name ListRandom NumbersRankRandomly Generated List Without Duplicates
2Name 10.949385683Name 15
3Name 20.01513273220Name 11
4Name 30.6643660089Name 1
5Name 40.26011245415Name 16
6Name 50.8287300735Name 5
7Name 60.12274355119Name 8
8Name 70.26234627814Name 18
9Name 80.805235786Name 14
10Name 90.41847619211Name 3
11Name 100.36729474312Name 17
12Name 110.9834729152Name 9
13Name 120.1453183618Name 10
14Name 130.23525445216Name 20
15Name 140.6800538298Name 7
16Name 150.9899466271Name 4
17Name 160.8943141154Name 13
18Name 170.58868601310Name 19
19Name 180.6854542347Name 12
20Name 190.15329598417Name 6
21Name 200.31535091113Name 2
Sheet1
Excel 2003
Cell Formulas
RangeFormula
B2=RAND()
C2=RANK(B2,$B$2:$B$21)-COUNTIF($B$2:B2,B2)+1
F2=INDEX($A$2:$A$21,MATCH(SMALL($C$2:$C$21,ROWS($F$1:F1)),$C$2:$C$21,0))
 
Upvote 0
That is awesome and I had been reading on how to complete this exact task.

However can this be slightly change to make it that the cells only change when each person presses f9.

Sort of
Person 1 presses f9 and gets there random name
Person 2 presses f9 and gets there random name but person 1 name stays as it was before.
 
Upvote 0
I don't think this can be done by formula. You'll need to use VBA for it. Let me know if you are ok to do that.
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,146
Members
449,098
Latest member
Doanvanhieu

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