+ Reply to Thread
Results 1 to 2 of 2

Function that pulls a random value from a set of data without repeating?

  1. #1
    Registered User
    Join Date
    04-15-2015
    Location
    Harrisburg, PA
    MS-Off Ver
    2010
    Posts
    1

    Function that pulls a random value from a set of data without repeating?

    [/SIZE]
    Is there a function that will draw a random value from my list of employee numbers without repeating that value within a column?


    [SIZE=1]I'm trying to work out a fair shift schedule for my place of business. I have a list of 30 employees, assigned numbers 1-30, listed vertically on one sheet. (Full time employees are in one column and part time are in another, but that doesn't really matter here.) My schedule / calendar is on another sheet.

    Scheduling shifts for a single day means putting an employee's assigned number in a box for a shift on that day, in a vertical column. I have it set to randomize on command (F9), but it often repeats employee numbers, causing the same employee to be scheduled for multiple shifts on the same day.

    I've attached a sample of the sheet so you can see what I'm talking about. Thanks for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Function that pulls a random value from a set of data without repeating?

    You can use =random()+row() then =RANK those to get out of the potential duplicates
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ 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 number without repeating?
    By nonoi via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 03:05 PM
  2. [SOLVED] random number without repeating?
    By Ragdyer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  3. random number without repeating?
    By nonoi via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  4. random number without repeating?
    By nonoi via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2005, 01:05 AM
  5. Random Number Non Repeating ...
    By a_ryan1972 in forum Excel General
    Replies: 3
    Last Post: 04-06-2005, 06:06 PM

Tags for this Thread

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