Counting segmented results

Axians

New Member
Joined
Dec 4, 2017
Messages
1
I am trying to automate a badminton league match scoresheet. I can use a SUM to calculate the total points scored, and SUMPRODUCT to work out total games won, but I then need to count up the number of 'best of threes' won.
eg:
First set may look like this:
21 - 19
10 - 21
21 - 19
Second set:
10 - 21
12 - 21
Third set:
23 - 25
21 - 18
20 - 22

The first figure would the be home side, second the away, and each is in their own cell. This should give the result of 1 rubber (best-of-3's) won for the home side, 2 rubbers for the away. Just in case there is confusion, matches are scored to 21, unless they reach 20-20, when they play to 2 clear points, so I can't just use >20 in any criteria.
My formula for totalling games is =SUMPRODUCT((Range1>20)*(Range1>Range2))

Cheers

Ben C
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Is there a team or player name associated with the scores? In counting the number of 'best of threes', is it comparing how many home wins vs away wins? What separates the 'best of threes' groups?

You could use an extra column to have a formula that looks at a single 3 game spread, so you'd need this formula for each group. I don't think there is an easy formula that allows Excel to compare multiple groups in a single calculation beyond simpler COUNTIFS/SUMIFS.
 
Upvote 0
Maybe using a helper column

Something like this


A
B
C
D
E
F
G
H
1
Set​
Home​
Away​
Home Wins​
Away Wins​
Helper​
2
1​
21​
19​
1​
2​
3
1​
10​
21​
4
1​
21​
19​
2​
5
2​
10​
21​
6
2​
10​
21​
0​
7
3​
23​
25​
8
3​
21​
18​
9
3​
20​
22​
1​

Formula in H2 copied down until H9
=IF(A2<>A3,SUMPRODUCT(--(A$2:A$9=A2),--(B$2:B$9>C$2:C$9)),"")

Formula in E2
=COUNTIF(H2:H9,2)

Formula in F2
=COUNTIF(H2:H9,"<2")

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,215,233
Messages
6,123,771
Members
449,122
Latest member
sampak88

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