LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default How can I randomly sort a column of data using Excel?

You don't necessarily need to use a sort. Suppose your list of men are in
A1:A5 and the list of women are in B1:B5. The formula

=OFFSET(A1,RAND()*4,0,1,1)

will return a randomly selected male. The formula

=OFFSET(B1,RAND()*4,0,1,1)

will return a randomly selected female.

In both formulas, change the '4' to the number of rows of names, minus 1.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




"Paul F." <Paul wrote in message
...
A bowling league consisting of an equal number of men and women would like
to
do a blind draw of two person teams (one male & one female) randomly each
night of play so that the teams members will be different each week and
randomly selected.


 
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 sort a column of Randomly selected numbers? Khoshravan Excel Worksheet Functions 8 July 14th 07 08:16 PM
How do I randomly sort data in a column? goody Excel Discussion (Misc queries) 1 October 2nd 06 03:36 PM
How do you randomly sort a RANGE latturne Excel Worksheet Functions 4 September 29th 05 09:40 PM
can Excel randomly sort numbers gasmith Excel Discussion (Misc queries) 2 March 18th 05 11:14 PM
I want to sort data randomly in addition to the current descendin. ckephart Excel Worksheet Functions 2 November 12th 04 06:11 PM


All times are GMT +1. The time now is 02:23 PM.

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

About Us

"It's about Microsoft Excel"