+ Reply to Thread
Results 1 to 6 of 6

Random name generator with no duplicates for company's lucky draw segment

  1. #1
    Registered User
    Join Date
    12-09-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Random name generator with no duplicates for company's lucky draw segment

    I have 75 names to be included for my company's lucky draw segment.

    How do I create an excel to generate a random name (winner), with no duplicates.

    I've tried many options online but all of them will have duplicated names:
    =INDEX($A:$A,RANDBETWEEN(1,COUNTA($A:$A)),1)
    =INDEX(A:A,INT((RAND()*75)+1),1)
    =OFFSET($A$1,ROUNDUP(RAND()*75,0),0,1,1)
    =INDEX(A1:A75,INT(RAND()*75+1))
    =RAND()
    =INDEX($A$2:$A$76,RANK(B2,$B$2:$B$76))

    Can anyone help to provide step by step solutions?
    No vba or coding etc as I'm a Excel idiot.

    Thank you.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Random name generator with no duplicates for company's lucky draw segment

    List your names in one column. In a column next to it =RAND() and copy down. Select / highlight all cells in both columns.

    With focus on the RAND column sort ascending or descending. The attempt to sort the RAND numbers will carry the names

    next to them.

  3. #3
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Random name generator with no duplicates for company's lucky draw segment

    I think it would require Excel to memorize the numbers/names already generated, so if that number/name comes up again, it re-rolls the formula. 75 names is not a lot actually. You could use the formula, copy/paste the value for reference and in case the value comes up again, re-roll the formula manually.

    I used a much simpler formula: =VLOOKUP(RANDBETWEEN(1;75);A1:B80;2;FALSE), where column A has numbers and column B has names.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Random name generator with no duplicates for company's lucky draw segment

    Quote Originally Posted by bmouse View Post
    I think it would require Excel to memorize the numbers/names already generated, so if that number/name comes up again, it re-rolls the formula. 75 names is not a lot actually. You could use the formula, copy/paste the value for reference and in case the value comes up again, re-roll the formula manually.

    I used a much simpler formula: =VLOOKUP(RANDBETWEEN(1;75);A1:B80;2;FALSE), where column A has numbers and column B has names.
    Good one. I'll have to remember it....and you're right.....it is much simpler.

  5. #5
    Registered User
    Join Date
    12-09-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Re: Random name generator with no duplicates for company's lucky draw segment

    I've tried your method and the names were still duplicated.

    I can't afford to re-roll the formula manually actually but thanks for your help!

  6. #6
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Random name generator with no duplicates for company's lucky draw segment

    How many draws out of the 75 names are you planning to make? I'm not sure if this is significant, but perhaps it can spring a new idea of solving this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 06-21-2013, 10:40 AM
  2. [SOLVED] Random Team Generator allowing Duplicates on separate teams
    By b_fruge in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-17-2013, 10:19 AM
  3. VBA for random generator
    By arn2025 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2012, 06:45 PM
  4. random generator
    By arn2025 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2012, 04:17 AM
  5. Create Lucky Draw game in Excel or PowerPoint
    By alibaba in forum Excel General
    Replies: 1
    Last Post: 10-23-2009, 01:16 AM

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