![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 2
|
I apologise if this is an old question, but I have searched the archives and cannot find a solution.
Ihave a group of 72 numbers (1 through to 72) and simply wish to randomly select any 1 from the 72 to match with any other 1, but without selecting numbers already chosen. Frugal Thanks Mark for your reply, but unfortunately it does not solve my problem. Let me start again : I run a team of 72 snooker players and regularly organise knockout competitions. The players enter their names onto a booking sheet and I make random selections of pairs of players to compete together. I currently do this by selecting out of a hat, but would prefer to do it with Excel so I can more easily record and store the draws for each competition. I have tried using the RAND and RANDBETWEEN Functions but cannot see a way to stop numbers being repeated. Could anyone please help with this. Regards Frugal [ This Message was edited by: Frugal Dougal on 2002-05-13 11:57 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
2 methods...
1. Enter the series 1 thru 72 in A1:A72. Next, enter =RAND() in B1:B72. Sort on column B. 2. Enter =RAND() in A1:A72. Enter =RANK(A1,$A$1:$A$72) into B1 and copy down to B72. Recalculate worksheet to randomize. [ This Message was edited by: Mark W. on 2002-05-13 11:43 ] |
|
|
|
|
|
#3 | |
|
New Member
Join Date: May 2002
Posts: 2
|
Quote:
|
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
There! I fixed the typo on method 2.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|