+ Reply to Thread
Results 1 to 7 of 7

Matching random names from 2 name lists

Hybrid View

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    10

    Matching random names from 2 name lists

    Hi, I started to program an algorithm in excel, but I need to have confirmation if I am doing it right. Situation as following: I have 2 lists of names, which I want to match to each other as a "meeting generator".That means, that each person should meet up with the other once, and restart when the matching list is finished. Here, the if function is getting very long, as I need to include every cell. Is there a shorter way to do it? Helpful answers are highly appreciated

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Matching random names from 2 name lists

    Create a list of numbers and list of names.
    For example:

    1	John
    2	Jane
    3	Charlie
    And then use =VLOOKUP(RANDBETWEEN(1,3), range_names, 2, FALSE)

    (where range_namse is above range of names i.e. H1:I3
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    06-18-2013
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Matching random names from 2 name lists

    Hey, thanks for the answer. It should look like "Mathew" meets "Jon" from those two lists; without numbers.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Matching random names from 2 name lists

    Upload example workbook

  5. #5
    Registered User
    Join Date
    06-18-2013
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Matching random names from 2 name lists

    I Believe I attached it now. Ideally, it should be:
    example:

    Row a: Person 1
    Row b: meets/ doesn't meet
    Row c: Person 2

    Thanks in advance
    Attached Files Attached Files

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Matching random names from 2 name lists

    Is this what you mean?

    Remember this is volatile and duplicates are allowed in each column.
    That is the list generated can have the same name more than once in either column.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  7. #7
    Registered User
    Join Date
    06-18-2013
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Matching random names from 2 name lists

    Cool, thank you, this is a new learning for me with the index function. Just that I understand it right: With the index number, you returned the value to the reference, then, you randomised it. Than the meet up function in if-function. However, if the meeting is once a week, how can I repeat the meeting, without having the case of that the same people meet up again before the whole name list is through?

    THANKS alot!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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