+ Reply to Thread
Results 1 to 3 of 3

Matching Algorithm Excel - Gale Shapley, Almost complete - Excel Matching - Please help

  1. #1
    Registered User
    Join Date
    11-07-2018
    Location
    Sydney Australia
    MS-Off Ver
    2016 Pro
    Posts
    74

    Matching Algorithm Excel - Gale Shapley, Almost complete - Excel Matching - Please help

    Current Progress: Currently I have a Gale and Shapley Algorithm (in the attached spreadsheet) which matches partners in 2 tables on sheet "Array" (Man & preferences vs Woman & preferences) and then records the results on sheet "Log". It works well. (Originally from thread: https://www.excelforum.com/excel-for...e-problem.html)

    Goal: I want to change this to 3 Sheets - I want to be able to enter the UNIQUE_ID_NAME in Column A on Sheet1 and UNIQUE_ID_PREFERENCES in Column B,C,D,E,F, etc (can be different amount of preferences per Unique_ID_Name)

    and Match this against the same fields in Sheet 2 UNIQUE_ID_CODE, which then produces the results of the match in Sheet 3.

    There can be a different number of Unique_ID_Name and Unique_ID_Format in Sheet 1 vs Sheet 2 and a different number of preferences, so some may result in no match.

    The matches can't double up and it's fine to have a no match scenario.

    I have included my spreadsheet with the current match and a spreadsheet of what I would like my goal to look like.

    I will be using this matching system with around 100 rows each time.

    Any help is greatly appreciated.

    Please Login or Register  to view this content.
    I have also listed this problem in the following threads on other forums, but have not received any replies.
    https://www.ozgrid.com/forum/forum/h...excel-matching
    https://www.mrexcel.com/forum/excel-...ml#post5258993
    http://www.vbaexpress.com/forum/show...819#post389819
    Attached Files Attached Files
    Last edited by AliGW; 04-24-2019 at 01:36 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Matching Algorithm Excel - Gale Shapley, Almost complete - Excel Matching - Please hel

    Hello Lee_Of_Excel,

    The Gale-Shapley algorithm produces stable matches between two equally sized sets of elements. It appears you are tracking unmatched elements which contradicts the Gale-Shapley algorithm rules. This may be why you have not received any answers. People are confused about what you are really want to do.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    11-07-2018
    Location
    Sydney Australia
    MS-Off Ver
    2016 Pro
    Posts
    74

    Re: Matching Algorithm Excel - Gale Shapley, Almost complete - Excel Matching - Please hel

    Quote Originally Posted by Leith Ross View Post
    Hello Lee_Of_Excel,

    The Gale-Shapley algorithm produces stable matches between two equally sized sets of elements. It appears you are tracking unmatched elements which contradicts the Gale-Shapley algorithm rules. This may be why you have not received any answers. People are confused about what you are really want to do.
    Hi Leith,

    Thanks for your reply.

    I was hoping that I could create a 'skip if blank' scenario, but my VBA skills aren't good enough to work it out. Maybe I can try another algorithm.

    Cheers
    Lee

+ 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. How do I post pictures in a commercial post?
    By excelbeginner2018 in forum Suggestions for Improvement
    Replies: 2
    Last Post: 06-28-2018, 05:25 PM
  2. test - last post didn't post
    By blesslisam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2018, 12:48 PM
  3. [SOLVED] Get Post link Post URL from old post Quick ..
    By Doc.AElstein in forum Suggestions for Improvement
    Replies: 0
    Last Post: 09-05-2015, 07:27 PM
  4. Duplicated Post and i want too list the latest post
    By dalacarelia in forum Access Tables & Databases
    Replies: 2
    Last Post: 06-18-2015, 07:10 AM
  5. Excel 2007 : this was a duplicate post -- deleted this post
    By excel_ninja_nyc in forum Excel General
    Replies: 0
    Last Post: 11-13-2011, 05:13 PM
  6. please post only post excel zip docs (no pics no word)
    By martindwilson in forum ExcelTip.com Feedback / Comments / Suggestions
    Replies: 3
    Last Post: 04-13-2008, 07:03 AM

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