+ Reply to Thread
Results 1 to 5 of 5

Random selection

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    edmonton canada
    MS-Off Ver
    Excel 2007
    Posts
    86

    Random selection

    I have 10 employees and need to randomly schedule them for fairness in schedule
    they are numbered 1 to 10
    when I use RANDBETWEEN I get duplicates
    is there a way I can stop the duplicates and have 1 to 10 in random order going down a column?

  2. #2
    Registered User
    Join Date
    10-25-2010
    Location
    edmonton canada
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Random selection

    is RANDBETWEEN not the way to go?
    is there another way?

  3. #3
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Random selection

    here's one method using a macro

    Please Login or Register  to view this content.
    Last edited by AndyLitch; 03-13-2014 at 07:26 AM.
    Elegant Simplicity............. Not Always

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Random selection

    Try this.......

    Please Login or Register  to view this content.
    For detail see the attached sheet.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Random selection

    Hi
    Start this array formula from second row. and drag down
    =LARGE(IF(COUNTIF($A$1:A1,ROW($1:$10)),0,ROW($1:$10)),RANDBETWEEN(1,SUM(--(IF(COUNTIF($A$1:A1,ROW($1:$10)),0,ROW($1:$10))>0))))

    Ctrl+Shift + Enter
    Appreciate the help? CLICK *

+ 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. Random Selection
    By StephenSmith in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-02-2012, 01:22 AM
  2. Random selection
    By ulti in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-21-2011, 05:25 PM
  3. Random selection
    By Bob@Sun in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-26-2010, 01:41 PM
  4. random selection help
    By 0ctagon in forum Excel General
    Replies: 1
    Last Post: 09-07-2006, 03:43 PM
  5. Random Selection
    By petevang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2005, 01:05 PM

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