+ Reply to Thread
Results 1 to 7 of 7

Randomizing list of Names

  1. #1
    Registered User
    Join Date
    06-13-2007
    Posts
    6

    Randomizing list of Names

    I have just about given up in my effort to be able to Randomize a list of names.
    I have 3 columns of 20 names and I wish to be able to randomize each column. Could anyone help me, as to how I go about it.
    Any help would really be appreciated.
    Regards
    sam2539

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Randomly select items from column

    try these formulas

    =INDEX($A:$A,RANDBETWEEN(1,COUNTA($A:$A)),1)
    =INDEX($B:$B,RANDBETWEEN(1,COUNTA($B:$B)),1)
    =INDEX($C:$C,RANDBETWEEN(1,COUNTA($C:$C)),1)

    hit f9 to change selection
    Last edited by davesexcel; 08-02-2007 at 01:04 AM.

  3. #3
    Registered User
    Join Date
    06-13-2007
    Posts
    6
    If the first cell in Column 1 is b2 and has the 20 names down to b21, and the next column is c2 and so on to d2, then where would I put the suggested formula. Sorry for my ignorance.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523
    Quote Originally Posted by sam2539
    If the first cell in Column 1 is b2 and has the 20 names down to b21, and the next column is c2 and so on to d2, then where would I put the suggested formula. Sorry for my ignorance.
    Right now it uses the entire column,change the columns or range as necessary,ie =INDEX($A$1:$A$9,RANDBETWEEN(1,COUNTA($A$1:$A$9)),1)

  5. #5
    Registered User
    Join Date
    06-13-2007
    Posts
    6
    I am sorry but I do not understand what you have told me. I will understand if you give up on me, but if you could persevere I would appreciate it

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523
    Quote Originally Posted by sam2539
    I am sorry but I do not understand what you have told me. I will understand if you give up on me, but if you could persevere I would appreciate it
    I have 3 columns of 20 names and I wish to be able to randomize each column. Could anyone help me, as to how I go about it.
    The function randomly selects an item from one column, you should be able to adjust the formula to suit your own requirements such as
    =INDEX($b$2:$b$21,RANDBETWEEN(1,COUNTA($b$2:$b$21)), 1)

  7. #7
    Registered User
    Join Date
    06-13-2007
    Posts
    6
    What I want is to be able to get the 20 names randomly selected without the same name coming up twice.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1