Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Random Number Generator without repeating numbers

  1. #1
    New Member
    Join Date
    May 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #3
    New Member
    Join Date
    May 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-05-13 08:04, Mark W. wrote:
    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(B1,$B$1:$B$72) into B1 and copy down to B72. Recalculate worksheet to randomize.

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    There! I fixed the typo on method 2.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •