+ Reply to Thread
Results 1 to 3 of 3

Randomly Pair Names in a list

  1. #1
    Forum Contributor
    Join Date
    09-19-2004
    Location
    Canada
    Posts
    408

    Post Randomly Pair Names in a list

    Hi,

    I have a spreadsheet with a list of names, such as:

    Abc
    Def
    Ghi
    Jkl
    Mno
    Pqr
    Stu
    Vwx
    Yza
    Bcd
    Efg
    Hij
    Klm
    Nop
    Qrs

    The spreadsheet would be shared, and should show one pair each day whenever it is opened. A name should not be repeated until all the other names have been used, and after all the names have been used, the names should be randomly paired again for the next cycle.

    Can someone write a code to do this for me, please.

    Thank you kindly,
    Gos-C
    Using Excel 2010 & Windows 10
    "It is better to be prepared for an opportunity and not have one than to have an opportunity and not be prepared."

  2. #2
    Forum Contributor
    Join Date
    11-16-2004
    Posts
    282

    Intriguing request...

    Hi Gos-C!

    I'm not sure I fully understand your requirements yet, so please indulge me while I try to get a grasp on your requirements.

    As I understand it so far, when a user opens the file, only two randomly selected names from the one-column list should appear; but you don't specify how they should appear, i.e. in a new worksheet in the file; in a user form, in a new workbook, etc....

    You also don't specify what happens after the randomly selected pairing is made.

    Since the file is shared, it seems that the first person to open it will set the pairing for that day and everyone else will only view what pairing was set???

    Will the list of names increase/decrease over time? If so, will it occur in the middle of a 'cycle'? If it does, what are the rules for finishing the current 'cycle'?

    theDude

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,
    Could following help ... individual tagging ...
    adjust your range, and copy down ...

    =IF(COUNTIF($A$1:$A$100,A1)>1,"Duplicate","")


    HTH
    Carim

+ 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