+ Reply to Thread
Results 1 to 3 of 3

Randomizing employee list with pairings without future duplicates

  1. #1
    Registered User
    Join Date
    01-27-2021
    Location
    Denver, CO
    MS-Off Ver
    MS Office 2019
    Posts
    1

    Randomizing employee list with pairings without future duplicates

    Hi there!

    New to this forum and am excited to be a member. I have been on the search for an answer and am having a really hard time figuring it out. I am trying to work on a list that I will be randomizing each month to pair employees with someone new. I am having issues with the pairing part not showing up duplicates and also making sure the two people are paired together. (ie Alli is paired with Bobbie, but for some reason down the excel sheet Bobbie is paired with Steven). I felt like I needed to start all over as a new start and that wasn't working either. If I could get advice on how or what to do. I have seen some people do it with macros, but I don't even know where to begin with that. I have attached a mockup excel sheet with different information so I don't give employee information. However, the excel functions I have in it are still there.

    Example excel sheet.xlsx
    Last edited by mooke147; 01-27-2021 at 10:21 PM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Randomizing employee list with pairings without future duplicates

    Hi,

    I'm zero with VBA

    in A2 numbers: from 1 to 106

    In C2

    =IFERROR(AGGREGATE(15,6,ROW($1:$106)/(COUNTIF(C$1:C1,ROW($1:$106))=0),RANDBETWEEN(1,106-COUNT(C$1:C1))),"")


    to get a random list without duplicates of numbers from 1 to 106

    In D2 to be copied below

    =VLOOKUP(C2,$A$2:$B$107,2;0)

    or

    =VLOOKUP(C2,$A$2:$B$107,2)

    A binary search is Ok for a complete list of numbers

    in D1

    =SUMPRODUCT(--(A2:A107<>C2:C107))

    Press F9 untill you read 106 in D1

    Then copy names in column D and paste special values in column E (or F or G)

    Hope it could be of some help.

    (in my case I would not run to be "paired" with at least 75% (maybe more) of my colleagues: formulas in column C would be more difficult )
    Attached Files Attached Files
    Last edited by canapone; 01-28-2021 at 04:09 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Randomizing employee list with pairings without future duplicates

    Your sample sheet does not make sense. Your sheet shows no-one paired with anyone!!

    Please repost showing ONLY what you are starting with and a few (manually prepared) rows showing your desired result.

    Add your revised sheet in a new post in THIS thread. DO NOT retrospectively edit post 1.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. [SOLVED] Use list to input employee ID to template, copy it, and repeat next down in list
    By wherdzik in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-15-2020, 09:40 AM
  2. Attempting to Predict Future Employee Attendance Occurrences
    By druchek in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-20-2018, 10:13 AM
  3. Past and future date list
    By unome tom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2015, 04:06 PM
  4. [SOLVED] Lookup employee number and see duplicates as well
    By nickmessick1 in forum Excel General
    Replies: 4
    Last Post: 01-25-2013, 11:18 AM
  5. [SOLVED] Randomizing Items in a List
    By briand907 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-17-2012, 09:48 PM
  6. Replies: 2
    Last Post: 08-28-2012, 10:41 PM
  7. Randomizing list of Names
    By sam2539 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-02-2007, 05:35 AM

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