Calculating Number of sets and wins in tennis match table

remalguy

New Member
Joined
Jul 17, 2018
Messages
8
Hello all,
I need help in the following.
I have a sheet with players and the results of their game (in same line)
I want to automatically add 1 point if the player won the match (in the points column) and add the number of sets the player won or lost

some tennis rules about winning or losing :
You win the set if you reach 6 (and opponent has 4 or less) or if you reach 7
if you win the tiebreak it's like you win a set
you win the match if you win 2 sets
If you win the match you take 1 point, if you lose you get 0


[TABLE="width: 1068"]
<colgroup><col><col><col span="5"><col><col><col span="7"></colgroup><tbody>[TR]
[TD] [/TD]
[TD] [/TD]
[TD]points[/TD]
[TD] [/TD]
[TD]sets +[/TD]
[TD]sets -[/TD]
[TD] [/TD]
[TD]games +[/TD]
[TD]games -[/TD]
[TD] [/TD]
[TD="colspan: 2"]set 1[/TD]
[TD="colspan: 2"]set 2[/TD]
[TD="colspan: 2"]tie break[/TD]
[/TR]
[TR]
[TD]Player A[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD] [/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD] [/TD]
[TD]9[/TD]
[TD]11[/TD]
[TD] [/TD]
[TD]7[/TD]
[TD]5[/TD]
[TD]2[/TD]
[TD]6[/TD]
[TD]10[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Player B[/TD]
[TD] [/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD] [/TD]
[TD]11[/TD]
[TD]14[/TD]
[TD] [/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Player C[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD] [/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]12[/TD]
[TD]3[/TD]
[TD] [/TD]
[TD]6[/TD]
[TD]2[/TD]
[TD]6[/TD]
[TD]1[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Player D[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]6[/TD]
[TD]1[/TD]
[TD]7[/TD]
[TD]6[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Player E[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]7[/TD]
[TD]6[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]12[/TD]
[TD]10
[/TD]
[/TR]
</tbody>[/TABLE]



Thanks all in advance,
Cheers
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
B2: =--(C2>D2)
C2: =SUM((G2>H2)+(I2>J2)+(K2>L2))
D2: =SUM((H2>G2)+(J2>I2)+(L2>K2))

Those should work for that.
 
Last edited:
Upvote 0
In need of help again....
If I have to add stats of match2, in the same format as match1 I have in the example (set1, set2, tiebreak) next of it, how the formula for B2 must be ?


Thanks for your efforts
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top