Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
m spangler
 
Posts: n/a
Default Formula for random shuffle between a range (example) b4,b78

Does any one have a formula for a random shuffle between a range? This is
needed to draw random teams for a golf tournament.
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Assume the range is A1:A20

=INDEX(A1:A20,INT(RAND()*(21-1)+1))

everytime you press F9 it will return a value from A1:A20



Regards,

Peo Sjoblom

"m spangler" wrote:

Does any one have a formula for a random shuffle between a range? This is
needed to draw random teams for a golf tournament.

  #3   Report Post  
bj
 
Posts: n/a
Default

in one column enter groups of team designation so that each team designation
is listed the same number of times as there will be players.

Either next to this column or next to the column of palyers names enter in
the top cell
=rand()
copy this down to have one per player.
Select the set of random numbers and either the team designations or the
players names and sort by the column of random numbers. The playyers will now
be randomly associated with a team.

"m spangler" wrote:

Does any one have a formula for a random shuffle between a range? This is
needed to draw random teams for a golf tournament.

  #4   Report Post  
M Spangler
 
Posts: n/a
Default

Reo,

This gives me a random selection from the range for one cell. How do I
shuffle the entire range?
"Peo Sjoblom" wrote:

Assume the range is A1:A20

=INDEX(A1:A20,INT(RAND()*(21-1)+1))

everytime you press F9 it will return a value from A1:A20



Regards,

Peo Sjoblom

"m spangler" wrote:

Does any one have a formula for a random shuffle between a range? This is
needed to draw random teams for a golf tournament.

  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Use brute force, use a help column and put =RAND() and copy down the same
number of rows, then just sort by the help column

Regards,

Peo Sjoblom

"M Spangler" wrote:

Reo,

This gives me a random selection from the range for one cell. How do I
shuffle the entire range?
"Peo Sjoblom" wrote:

Assume the range is A1:A20

=INDEX(A1:A20,INT(RAND()*(21-1)+1))

everytime you press F9 it will return a value from A1:A20



Regards,

Peo Sjoblom

"m spangler" wrote:

Does any one have a formula for a random shuffle between a range? This is
needed to draw random teams for a golf tournament.

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
Changing a range of an array in a SUMPRODUCT formula gives a #N/A error Chrism Excel Discussion (Misc queries) 4 May 4th 05 04:06 PM
Formula Changes when data entered in referenced range mac849 Excel Discussion (Misc queries) 5 March 21st 05 01:57 AM
Formula to return ADDRESS of cell in range that meets criteria Christie Excel Worksheet Functions 1 March 4th 05 11:13 PM
Formula to count the cells in a range that have a fill color. Molly F Excel Discussion (Misc queries) 2 January 19th 05 06:15 PM
how do I make a formula NOT change when the data range is moved? Alida Andrews Excel Discussion (Misc queries) 2 January 6th 05 09:02 PM


All times are GMT +1. The time now is 04:44 AM.

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"