Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how make a random draw of teams of 4 golfers from a list of 40

Everey week we have a group of 25 to 40 golfers that want to make a random
draw of teams of 4. How can I do this using Excel
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default how make a random draw of teams of 4 golfers from a list of 40

Run this in a blank worksheet. Pure random number generation.

Sub RandomGroup()
Dim Random
Dim DestCell As Range
Dim i As Long

i = 1
For i = 1 To 40
Set DestCell = ActiveSheet.Cells(i, 1)
Random = Rnd()
Select Case Random
Case Is < 0.25
DestCell = "Team 1"
Case Is < 0.5
DestCell = "Team 2"
Case Is < 0.75
DestCell = "Team 3"
Case Is < 1
DestCell = "Team 4"
End Select
Next i

End Sub

--------
Cheers,
Anony


"romero1st" wrote:

Everey week we have a group of 25 to 40 golfers that want to make a random
draw of teams of 4. How can I do this using Excel

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default how make a random draw of teams of 4 golfers from a list of 40

enter the names in column 1.

in column 2, B2 put in

=rand()
then drag fill down next to the names.

Sort the two columns on the second column.

1st 4 rows are team1, second 4 are team 2 and so forth.

--
Regards,
Tom Ogilvy


"romero1st" wrote:

Everey week we have a group of 25 to 40 golfers that want to make a random
draw of teams of 4. How can I do this using Excel

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a random rotation of 6 teams Rick Smith Excel Discussion (Misc queries) 1 November 30th 09 10:21 AM
How to draw up a schedule so that 12 teams play each other once Peter Harrigan Excel Discussion (Misc queries) 1 October 1st 09 10:01 AM
random draw from list of names jat Excel Worksheet Functions 1 September 30th 09 08:29 PM
How can I make random selection from excel list? DD Excel Discussion (Misc queries) 2 October 9th 06 09:38 PM
Random Draw ExcelMonkey[_174_] Excel Programming 1 October 5th 04 11:58 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"