+ Reply to Thread
Results 1 to 9 of 9

Calculate Opponents Win Loss Record

  1. #1
    Registered User
    Join Date
    04-04-2010
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    14

    Calculate Opponents Win Loss Record

    Tennis Tourney 2012v2.xlsx

    My friends and I are having a tennis tournament. First we're playing everybody round robin style for 1 set and then we are using those results to determine seeding for the actual tournament best of 3 sets.

    What I am having trouble doing is figuring out a way to dynamically calculate a players opponents Wins and Losses (Columns N & O). Essentially I want the formula to calculate the records for everybody that Kevin has played to date, and then update each time he plays a new person etc. I'm using Excel 2007, but I'd really like help coming to a solution that will carry over to Excel 2003 or even Excel 2000 as not all players will be able to view a 2007 sheet. When you look at the sheet you will see all that I want to enter is the Winner, Loser and score of the set. I do this all in the left hand side of the sheet and then it should calculate all the rest of the information to the right and we are then using a weighted formula to designate rankings.

    Any help would be much appreciated. Worst case scenario we could calculate it manually, but I'd like to avoid making my buddy have to do this as after every match it would affect almost every other players opponents win/loss records.
    Last edited by TGCRequiem; 06-24-2012 at 08:47 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Calculate Opponents Win Loss Record

    for Aaron, how do you arrive at the 7 and 6? (I assume those are the 2 calcs you need help with?)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-04-2010
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Calculate Opponents Win Loss Record

    Aaron played against 3 opponents so far...Kevin, Shannon and Tom.

    Kevin's record to date is 0-2
    Shannon's record to date is 4-1
    Tom's record to date is 3-3

    So in this case Aaron's opponents record is 7-6. The next time Kevin plays though his record will change, and thus Aaron's opponents record will change. We really only need this because we are not going to get all players to play all other players before we start the tournament rounds and so we are trying to weight the quality of opponent for each player. This way at the end of the preliminary rounds if we have two players that are 11-0 we can determine which player had a tougher "schedule" and thus deserves the #1 seed.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Calculate Opponents Win Loss Record

    I don't have a solution for you (too late in the day) but I would like to point out (on Kevin's behalf) that his record is actually 1-2 (not 0-2). His win isn't showing up in cell H9 because there is a space after his name in cell A2.

    You're welcome, Kevin.

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Calculate Opponents Win Loss Record

    OK, here is something for you to test.
    Attached Files Attached Files

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Calculate Opponents Win Loss Record

    Sorry, forgot to do the absolute referencing (I told you it was too late in the day).

    Change the formula in cell N2 to this:

    =SUM(SUMIF($A$2:$A$47,G2,$V$2:$V$47),SUMIF($E$2:$E$47,G2,$T$2:$T$47))

    and in cell O2 to this:

    =SUM(SUMIF($A$2:$A$47,G2,$W$2:$W$47),SUMIF($E$2:$E$47,G2,$U$2:$U$47))

    and drag those 2 cells down to row 17 - now test it.

  7. #7
    Registered User
    Join Date
    04-04-2010
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Calculate Opponents Win Loss Record

    Thanks Cutter. You resolved the issue, and I was even able to figure out the logic behind it after reviewing it.

    As for Kevin, this is actually my buddy's spreadsheet that I decided to automate for him. He must have put Kevin with a space before I put in my data validation requirements. Great catch!

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Calculate Opponents Win Loss Record

    You're welcome. Glad to have helped. Tell Kevin he owes me one.

    Please remember to mark your thread as SOLVED (click Forum Rules @ top of page - see rule #9 for instructions).

  9. #9
    Registered User
    Join Date
    04-04-2010
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Calculate Opponents Win Loss Record

    Done. Somehow I couldn't find the solved option last night. Thanks again.

+ 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