+ Reply to Thread
Results 1 to 12 of 12

Pairing people according to strengths

  1. #1
    Registered User
    Join Date
    02-16-2015
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    4

    Pairing people according to strengths

    Hi,

    First of all, I am a novice in Excel. I don't even know if I'm posting in the right thread.

    I'm organising a quiz tournament for pairs. In stead of randomly pairing each quizzer, I'd like to do these on the basis of their strengths. For example, someone who isn't strong in sports will be paired with someone who is.

    Before the tournament I will let everybody fill in a list in which they rank their strengths in the following 9 categories: sports, geography, history, music, biology, science, literature, art and film. You give 9 points for your strongest subject and 1 point for your weakest.

    On the basis of these lists I would like the programme to divide the whole field into the pairs that are the most complementary.

    Is this possible? Is this hard? Does this type of programme already exist?

    Thanks for all the help!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Pairing people according to strengths

    I've not heard of such a program (it does not mean it does'nt exist ;-) ), but you could probably make a kind of "difference table" with presonX vs presonY comparison (so n by n table, where n is number of participants.
    And my proposition for "measuring difference" is sum of squared differences in each category. Squared to: a) do not think stronger/weaker - just different b) to emphasize bigger differences.
    and then try to select pairs that have lowest values of this difference measure.

    For small number of participants the program could check all possible divisions but then with growning number of participants probablu some optimization (and may be leading just to good selection, not necesserily the best one) routtines would be needed.
    Best Regards,

    Kaper

  3. #3
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Pairing people according to strengths

    No its not difficult
    We just need a format to work upon your requirements
    So just upload a sample format with few examples so that we have a better understanding...
    To upload a workbook Click on GO ADVANCED and use the paperclip icon to open the upload window.

    http://www.excelforum.com/members/davesexcel-albums-excel-pictures-picture149278-attach-a-file.html"]View Pic[/URL]
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  4. #4
    Registered User
    Join Date
    02-16-2015
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    4

    Re: Pairing people according to strengths

    Thanks a lot for all the kind help!

    I have added a little sample (8 people, though in reality it will be more like 32 people) of how it would look like (without all the coding). Alan and Ben would be "a match made in heaven", but maybe they shouldn't end up with each other if you look at the others as well.
    Attached Files Attached Files

  5. #5
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Pairing people according to strengths

    Ohk I am trying to accomplish it...

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Pairing people according to strengths

    Hi,

    See attached file.
    I did it basically step by step (or "helper column by helper column" ;-) ) so shall be reasonably easy to understand.
    Yellow cells have formulas (which were copied down). Gray is a "handwritten" 1. Note that both U2 and U3 have (diffrent) formulas inside.

    It is a bit easier to modify to different number of participants when they are listed opposite way than you did. (transposed)

    See also sheet2 - with similar playes mathed (this was my initial thought, that you want to math them by similarities, not by dissimilarities.

    And Sheet 3 with 32 players ! (the skills of next 24 are randomly assigned here :-)) - note that some (depending on result of particular random run) are even "better" than your Alan and Ben :-)
    Attached Files Attached Files
    Last edited by Kaper; 02-16-2015 at 01:02 PM.

  7. #7
    Registered User
    Join Date
    02-16-2015
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    4

    Re: Pairing people according to strengths

    It looks great: so much love (and a little bit of reputation)! I hope sourabhg98 hadn't started yet, if so: thank you also!

    One final question: if I add competitors to the list of 32, I get a #ref! error if he starts comparing the names on the right. I probably have to tweak the formulas somewhere, but for a novice it seems legit.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Pairing people according to strengths

    A different approach, using VBA:

    Figure out a metric that that measures the fairness of the entire set of teams. (Not sure what that would be, but something like minimizing variance.)

    Assign pairings at random (e.g., in alphabetical order).

    Create a loop that tries every possible swap, and reevaluate the metric after each one. If the swap improves the metric, keep it. Loop until no swap offers improvement.

    General comment: I would allow duplicates, so someone could, for example, rank science, biology, & literature as #1, history & geography as 4, sports as 6, and music, film, & art as 7. My knowledge of music and art are negligably different and close to zero.
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Pairing people according to strengths

    As for #ref: yes, to keep formulas as simple as possible, I hardcoded the range addresses so if you plan to have other number of participants than 8 or 32 (you have already prepared)
    you have two (well: three) main options:

    First one: write all participants and their skills (or if you do not know them - include dummy names and dummy skills) and go one by one from left-up going down-right through yellow cells and update formulas to follow your data range.
    After changing each yellow cell (if it have ancessors below) - copy it down (paste formulas only) checking how much down you have to go.

    The second option would be to create dynamic range names (in name manager: Ctrl+F3) but it would be a it more fancy solution.

    The third would be (as you posted your question on VBA subforum) - if you are satsfied with the algorithm we tested here - rewrite it from formulas version to VBA one :-).

    I proposed simple formulas (unfortunately it leads to more work during sustomization), because you declared to be "novice in Excel".
    Last edited by Kaper; 02-16-2015 at 01:49 PM.

  10. #10
    Registered User
    Join Date
    02-16-2015
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    4

    Re: Pairing people according to strengths

    I tried it out and it works. It isn't so hard if you use the "find and replace"-function and change $33 (for 32 participants) to $35 of $37 if you have two pairs more. Easy!

    Thanks, everyone! It's a wrap!

  11. #11
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Pairing people according to strengths

    Change also othe addresses.
    Columns M and N (and as a consequence O-U too) shall be extended down from current row 497 to 564 (yes it's growning quickly) so all addresses with $497 shall be also updated

  12. #12
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Pairing people according to strengths

    Thinking of possibilities of some brute-force approach, I did some small additional research.
    Well with 32 persons, one shall give up brute-force ideas and rely either on such simple algorithm as above:
    find a most different pair, and then go down the ranking of diffreneces skipping these pairs, where one of members is already selected,
    or go some "fuzzy logic or random mixing algorithms.

    But anyway you simply cannot use brute force, do a list of all possible pairs:
    AB CD EF GH IJ KL ...
    AC BD EF GH IJ KL ...
    etc.
    and calculate for each of this set for instance sum of "fitting quality" measure for all pairs.

    Why? Because the list will be 31!! (double factorial !) long.

    It is more than 10^17

    If you had whole year to do calculation, your machine would have to check 6 085 070 521 each second, yes 6G+ compared per second. Really something.
    Not to mention storage space requirements (it basically is not necessary, so speed is main limit)
    If someone would have a concept to store each of compared list of pairs. 10^17 items 10 000 Terraitems :shock:

    So I'm giving up the idea to use bruteforce on this.

+ 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. Pairing/Grouping People
    By gslgroup in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-30-2014, 02:58 PM
  2. help pairing columns
    By YORKS12345 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2014, 01:16 AM
  3. [SOLVED] Column Pairing lookup?
    By Phily915 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-24-2014, 08:09 PM
  4. Data Pairing
    By frankymute in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-23-2014, 01:00 AM
  5. Random pairing
    By woodnwine in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2010, 01:01 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