Tennis doubles win percentage table help

New Contributor

My club is in a tennis league and we regularly play matches with different partners. I would like to create a table that automatically combines the data so we can learn which two-player teams have the best win percentages. Normally, I would leverage a pivot table but I don't think it is the right use case. 

 

Also, when scores are posted on the league website, the players are not normally listed in the same spot/column, which is another layer to this issue I'm having.  Below is an example of the data I am collecting and how some players will be listed in the first position or second position. The second table is an example of how I'd like the final product to look like. 

 

Player 1Player 2Set 1Set 2Set 3Win / Loss
Player APlayer B3-60-6 Loss
Player APlayer C6-23-67-5Win
Player BPlayer C6-06-3 Win
Player APlayer C6-16-3 Win

 

  Win Perc.
Player APlayer B0%
Player APlayer C100%
Player BPlayer C100%

 

I'm sure this isn't a simple task or I probably would have figured out a solution by now. I appreciate your help with this matter. Just being pointed in the right direction is a big help. Thanks!

5 Replies

assuming you have excel 365 you should be able to do something like:
lets call table 1 "Data" and then in table 2 you have all the combinations listed (if you need a formula for that we can do that too), then I also suggest you might want to another column like # games so you can see if that 100% win is because they won 1 match or because they won 20/20 matches.
Formula options could be:

=SUM(--(LEN(FILTER(Data[Win / Loss],ISNUMBER(MATCH(Data[Player 1],Table2[@[Player 1]:[Player 2]],0)*MATCH(Data[Player 2],Table2[@[Player 1]:[Player 2]],0)),""))>2))

and similar for the count of wins but instead of LEN(...)>2 just use ="Win"

see example attached.

Edited for a couple mistakes and to attach sample

@fensterbos 

=(COUNTIFS($A$2:$A$10,B14,$B$2:$B$10,A14,$F$2:$F$10,"Loss")+COUNTIFS($A$2:$A$10,A14,$B$2:$B$10,B14,$F$2:$F$10,"Win"))/(COUNTIFS($A$2:$A$10,A14,$B$2:$B$10,B14)+COUNTIFS($A$2:$A$10,B14,$B$2:$B$10,A14))

You can try this formula.

tennis.JPG

This is a great start, thank you!

I played around with the example and it works well. We have almost 30 guys on our team, which could result in 100 different pairings, which could be difficult to manage in Table 2. Is there a way for Table 2 to create the pairings automatically when I create them in Data/Table 1?
This should work also but I think you need to swap your "Loss" to "Win"

@fensterbos  I am attaching a new copy with a formula to automatically calc all combinations.  I modified a code recently done for another recent post (challenge).  In this example I used @Quadruple_Pawn 's approach as I think it may be cleaner but either works

EDIT: modified attached to use array formulas for the total matches and Win %