+ Reply to Thread
Results 1 to 8 of 8

Pairing Match Players limited by 5 matches

  1. #1
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Pairing Match Players limited by 5 matches

    I have a system which Requires a group of 6 maximum which reveals 5 matches each. When the entry goes beyond 6 I still want to have them still play 5 matches. I got it to work with multiples of s which was easy, but to fing a repeating pattern to deal with the awkward entries between 7 & 11 I cant fathom. Thanks for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Pairing Match Players limited by 5 matches

    Take a look at the attachment to see if it will do. I've entered 1 and 2 in the first matchup, then in D3 I have the array formula (confirm with Ctrl + Shift + Enter instead of Enter) below:

    =MIN(IF(COUNTIF($D$2:$D2,$A$2:$A$13)+COUNTIF($E$2:$E2,$A$2:$A$13)=MIN(COUNTIF($D$2:$D2,$A$2:$A$13)+COUNTIF($E$2:$E2,$A$2:$A$13)),$A$2:$A$13))

    and in E3 (also array-confirmed):

    =MIN(IF(COUNTIF($D$2:$D2,$A$2:$A$13)+COUNTIF($E$2:$E2,$A$2:$A$13)+3*COUNTIFS($D$2:$D2,$D3,$E$2:$E2,$A$2:$A$13)+3*COUNTIFS($E$2:$E2,$D3,$D$2:$D2,$A$2:$A$13)+30*COUNTIF(D3,$A$2:$A$13)=MIN(COUNTIF($D$2:$D2,$A$2:$A$13)+COUNTIF($E$2:$E2,$A$2:$A$13)+3*COUNTIFS($D$2:$D2,$D3,$E$2:$E2,$A$2:$A$13)+3*COUNTIFS($E$2:$E2,$D3,$D$2:$D2,$A$2:$A$13)+30*COUNTIF(D3,$A$2:$A$13)),$A$2:$A$13))

    Fill both formulas down through row 31 and it should return a set of matchups that look reasonably correct to me. For more or less than 12 players, add/subtract the numbers from column A and do a replace all on D:H. For instance, to work with 7 players instead of 12, do a 'replace all' on D:H, replacing $13 with $8 in the formulas (not values). There's probably a better way - I came to my solution via experimental tinkering - but take a look and see if it's good enough:
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Pairing Match Players limited by 5 matches

    Does the formula work in rows of 12? Do I have to change the next 12 rows areas in the second formula. Im playing with it, Ill get back if Im stuck, thanks.

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Pairing Match Players limited by 5 matches

    Quote Originally Posted by pingpong1 View Post
    Does the formula work in rows of 12?
    I'm not sure what you mean? The attachment I posted is set up for 12 players, but you can adjust it for more or fewer players using the 'replace all' method I described in post #2. I tested it with 7-12 players and it seemed to hold up reasonably well (no errors, even-looking matchups). You can apply it to any number of rows you like in columns D and E. I used the 30 that you had set up, but you can fill down beyond that for additional matchups. The formulas are not based on the number of available slots at all; they simply look at the previous matchups (however many there are) and select a pairing based in column D on fewest matches played thus far and for column E it uses fewest played and fewest against the proposed opponent. It is almost certainly not a flawless method, but the results look reasonable based on my understanding of the objective. Play with it a bit and let me know if you spot anything overly troubling.

  5. #5
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Pairing Match Players limited by 5 matches

    It works perfectly. I simplified it from the workbook, but it needs to be integrated back in because I have row separations and things are in different columns. I will try and integrate it back. If Im stuck I'll attach the actual sheet if I may, thanks.

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Pairing Match Players limited by 5 matches

    Glad I could help, good luck!

  7. #7
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Pairing Match Players limited by 5 matches

    Hi. Ive tried several ways but cant get close to what you did integrating it back into my original. I copied one Tab in isolation to work on, but still couldnt work it. Pasting the Formulas removed the playing order. The only way I can see is to upload my book as there are links to other sheets which might be interfering? If you wouldnt mind tinkering a bit more for me I would be grateful. I assume if you get the first 2 tables working in WK 1 I can copy paste down in table pairs in that tab

  8. #8
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Pairing Match Players limited by 5 matches

    Is there a new upload forthcoming? I'm not seeing anything...

+ 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] pairing of players in excel/vba
    By chujiru in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-11-2016, 05:06 AM
  2. [SOLVED] INDEX MATCH array formula that matches substring n gives multiple matches
    By bkwins in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2013, 04:57 AM
  3. [SOLVED] Problem? If players win 4 legs on the match day. He get 1 bonus point.
    By micope21 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2013, 10:30 AM
  4. Vlookup with partial match limited to target entries
    By nigelog in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2012, 12:02 PM
  5. Replies: 4
    Last Post: 07-18-2012, 02:34 PM
  6. MATCH function - limited range?
    By Richard Buttrey in forum Excel General
    Replies: 12
    Last Post: 12-05-2010, 11:51 AM
  7. Offset/Match formula - range limited
    By locapacow in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2007, 10:29 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