Handicap Score Differentials up to 20 scores

andycap

New Member
Joined
Feb 24, 2021
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a very nice and detailed Excel database I use for our golf league. In case a golfer sees this, we use the Stableford "points" system rather than "strokes".

Up until now we have kept our averaging simple by only averaging the best 8 scores out of 20. For golfers with less than 8 scores then those scores were used for the average and then the Best 8 kicked in after the 9th round. Now we have to align with the 2020 USGA Handicap Index and therefore there will be different averages and adjustments based on the number of rounds. I've attached an image that showing a chart. The LEFT side of the chart is the USGA chart and then I added the RIGHT side and converted it to points using our points system for our requirements. FYI, this forum provided me the below formula and rule for conditional formatting and that's why I'm back here! :) Thanks, @Fluff

Currently this is the formula used for averaging the Best 8 out of 20 scores:
=IFERROR(AVERAGE(LARGE($H69:$AA69,SEQUENCE(MIN(8,COUNTIFS($H69:$AA69,">0"))))),0)

I also use Conditional Formatting to highlight the Best 8 scores that are used for the average.
=RANK(H69,$H69:$AA69)+COUNTIFS($H69:H69,H69)-1<=8
Going forward I would need this to adjust as the number of rounds increases and which scores are being used for averaging and, if possible, a way of showing the adjustment.

Looking at the RIGHT side of the chart you can see that for rounds 2 thru 20 there is specific averaging and adjustments after each round. The first round is fixed and doesn't need to be part of the formula. I have no idea how to go about writing a formula to address 20 different averages and adjustments.

The other image is of the sheet used for what we call our "Quotas".

Is this possible?

Thank you,
Andy
 

Attachments

  • usga first 20 scores.png
    usga first 20 scores.png
    34.2 KB · Views: 105
  • Sunday, Quotas, Aug 8, 2021.png
    Sunday, Quotas, Aug 8, 2021.png
    203.4 KB · Views: 112
I found a shorter (possibly easier?) formula for the Conditional Formatting:

Excel Formula:
=H3/(H3>0)+COLUMNS($H:H)/1000<=SMALL(FILTER($H3:$AA3+SEQUENCE(,20)/1000,$H3:$AA3>0),$D3)
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Welcome to MrExcel!

For future reference, it's probably best to open a new thread, so that more people will see it. You can certainly reference the earlier thread, or even tag the helper (as you did in your second message).

But given that, try this:

Book1
ABCDGHIJKLMNOPQRSTUVWXYZAA
1Combined Men's League's ScoresMost Recent "Adjusted Gross Scores" Provided from Golf Genius
2Handle 18 hole IndexRound CountScores UsedAverage Score1234567891011121314151617181920
3Golfer 1-4.05234.003337353635
4Golfer 216.21140.0040
Sheet1
Cell Formulas
RangeFormula
B3:B4B3=2*(113/61)*(G3-34.55)-LOOKUP(C3,{1,4,7},{4,2,0})
C3:C4C3=COUNT(H3:AA3)
D3:D4D3=MATCH(C3,{1,3,9,12,15,17,19,20})
G3:G4G3=AVERAGE(SMALL(H3:NPX3,SEQUENCE(D3)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H3:AA4Expression=LET(s,SMALL($H3:$AA3,$D3),AND(H3<>"",OR(H3<s,AND(H3=s,COUNTIF($H3:H3,s)<=$D3-COUNTIF($H3:$AA3,"<"&s)))))textNO


I did simplify some of the formulas, and I used some of the new functionality in Excel 365 to make them easier. Let me know how this works for you!
It does work a lot better, Thanks for your help, and recommendations
 
Upvote 0
I found a shorter (possibly easier?) formula for the Conditional Formatting:

Excel Formula:
=H3/(H3>0)+COLUMNS($H:H)/1000<=SMALL(FILTER($H3:$AA3+SEQUENCE(,20)/1000,$H3:$AA3>0),$D3)
I found a shorter (possibly easier?) formula for the Conditional Formatting:

Excel Formula:
=H3/(H3>0)+COLUMNS($H:H)/1000<=SMALL(FILTER($H3:$AA3+SEQUENCE(,20)/1000,$H3:$AA3>0),$D3)
Thanks. I didn't show the hidden columns. Is it possible to integrate these, so if i change the scores used if adjusts the formula?

WHS Handicaps.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1Combined Men's League's ScoresMost Recent "Adjusted Gross Scores" Provided from Golf Genius
2Handle 18 hole IndexRound CountScores Used# GamesScores UsedAverage Score1234567891011121314151617181920
3Golfer 11.5421135.5035364038
4Golfer 219.9322141.00404244
5Golfer 3 -0.3623235.00324743443845
642
752
862
972
1082
1193
12103
13113
14124
15134
16144
17155
18165
19176
20186
21197
22208
23
24
25
26
27
28
Master
Cell Formulas
RangeFormula
B3:B5B3=2*(113/61)*(G3-34.55)-LOOKUP(C3,{1,4,7},{4,2,0})
C3:C5C3=COUNT(H3:AA3)
D3:D5D3=MATCH(C3,{1,3,9,12,15,17,19,20})
G3:G5G3=AVERAGE(SMALL(H3:NPX3,SEQUENCE(D3)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H3:AA3,H5:AA5,H4:J4,L4:AA4,H7:AA150,H6:U6,W6:AA6Cellcontains a blank value textYES
H3:AA3,H5:AA5,H4:J4,L4:AA4,H7:AA150,H6:U6,W6:AA6Expression=LET(s,SMALL($H3:$AA3,$D3),AND(H3<>"",OR(H3<s,AND(H3=s,COUNTIF($H3:H3,s)<=$D3-COUNTIF($H3:$AA3,"<"&s)))))textNO
V6Cellcontains a blank value textYES
V6Expression=LET(s,SMALL($H4:$AA4,$D4),AND(V6<>"",OR(V6<s,AND(V6=s,COUNTIF($H4:K4,s)<=$D4-COUNTIF($H4:$AA4,"<"&s)))))textNO
 
Upvote 0
Yes, very easy:

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1Combined Men's League's ScoresMost Recent "Adjusted Gross Scores" Provided from Golf Genius
2Handle 18 hole IndexRound CountScores Used# GamesScores UsedAverage Score1234567891011121314151617181920
3Golfer 11.5421135.5035364038
4Golfer 219.9322141.00404244
5Golfer 3-0.3623235.00324743443845
642
752
862
972
1082
1193
12103
13113
14124
15134
16144
17155
18165
19176
20186
21197
22208
Sheet1
Cell Formulas
RangeFormula
B3:B5B3=2*(113/61)*(G3-34.55)-LOOKUP(C3,{1,4,7},{4,2,0})
C3:C5C3=COUNT(H3:AA3)
D3:D5D3=VLOOKUP(C3,$E$3:$F$22,2)
G3:G5G3=AVERAGE(SMALL(H3:NPX3,SEQUENCE(D3)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H3:AA10Expression=H3/(H3>0)+COLUMNS($H:H)/1000<=SMALL(FILTER($H3:$AA3+SEQUENCE(,20)/1000,$H3:$AA3>0),$D3)textNO
 
Upvote 0
Perhaps this B3 formula:

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1Combined Men's League's ScoresMost Recent "Adjusted Gross Scores" Provided from Golf Genius
2Handle 18 hole IndexRound CountScores Used# GamesScores UsedIndex AdjustmentAverage Score1234567891011121314151617181920
3Golfer 11.54211435.5035364038
4Golfer 219.93221441.00404244
5Golfer 3-0.36232435.00324743443845
6422
7522
8622
9720
10820
11930
121030
131130
141240
151340
161440
171550
181650
191760
201860
211970
222080
Sheet1
Cell Formulas
RangeFormula
B3:B5B3=2*(113/61)*(H3-34.55)-VLOOKUP(C3,$E$3:$G$22,3)
C3:C5C3=COUNT(I3:AB3)
D3:D5D3=VLOOKUP(C3,$E$3:$F$22,2)
H3:H5H3=AVERAGE(SMALL(I3:NPY3,SEQUENCE(D3)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I3:AB10Expression=I3/(I3>0)+COLUMNS($I:I)/1000<=SMALL(FILTER($I3:$AB3+SEQUENCE(,20)/1000,$I3:$AB3>0),$D3)textNO


I just added another column to your E:F table, with the adjustment for the number of rounds. Keep in mind that I originally combined the common pieces of the original B formula, and just added the subtraction piece for the differences. If the formula is more complicated that, we'd need to reexamine the formula.
 
Upvote 0
It's pretty easy to extend this sheet to include more than 20 rounds.

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
1Combined Men's League's ScoresMost Recent "Adjusted Gross Scores" Provided from Golf Genius
2Handle 18 hole IndexRound CountScores Used# GamesScores UsedIndex AdjustmentAverage Score12345678910111213141516171819202122232425
3Golfer 11.5196724211435.535364038
4Golfer 219.896723221441404244
5Golfer 320.6549225832440.12532474344384541424344454647484949484746454443424840
6422
7522
8622
9720
10820
11930
121030
131130
141240
151340
161440
171550
181650
191760
201860
211970
222080
Sheet16
Cell Formulas
RangeFormula
B3:B5B3=2*(113/61)*(H3-34.55)-VLOOKUP(C3,$E$3:$G$22,3)
C3:C5C3=COUNT(I3:ZZ3)
D3:D5D3=VLOOKUP(C3,$E$3:$F$22,2)
H3:H5H3=AVERAGE(SMALL(I3:ZZ3,SEQUENCE(D3)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I3:ZZ10Expression=I3/(I3>0)+COLUMNS($I:I)/1000<=SMALL(FILTER($I3:$ZZ3+SEQUENCE(,COLUMN($ZZ1)-COLUMN($H1))/1000,$I3:$ZZ3>0),$D3)textNO


Just extend the C3 and H3 formulas to look at a column further to the right (I picked ZZ). The Conditional Formatting formula also needs to be adjusted. I tweaked it a little to make it more obvious how to adjust the last column. Let me know how this works!
 
Upvote 0
@Eric W I know this is older. It has been working like a charm. My question now is can it be set to use the latest 20 scores if i enter over 20 scores?
 
Upvote 0
It's pretty easy to extend this sheet to include more than 20 rounds.

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
1Combined Men's League's ScoresMost Recent "Adjusted Gross Scores" Provided from Golf Genius
2Handle 18 hole IndexRound CountScores Used# GamesScores UsedIndex AdjustmentAverage Score12345678910111213141516171819202122232425
3Golfer 11.5196724211435.535364038
4Golfer 219.896723221441404244
5Golfer 320.6549225832440.12532474344384541424344454647484949484746454443424840
6422
7522
8622
9720
10820
11930
121030
131130
141240
151340
161440
171550
181650
191760
201860
211970
222080
Sheet16
Cell Formulas
RangeFormula
B3:B5B3=2*(113/61)*(H3-34.55)-VLOOKUP(C3,$E$3:$G$22,3)
C3:C5C3=COUNT(I3:ZZ3)
D3:D5D3=VLOOKUP(C3,$E$3:$F$22,2)
H3:H5H3=AVERAGE(SMALL(I3:ZZ3,SEQUENCE(D3)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I3:ZZ10Expression=I3/(I3>0)+COLUMNS($I:I)/1000<=SMALL(FILTER($I3:$ZZ3+SEQUENCE(,COLUMN($ZZ1)-COLUMN($H1))/1000,$I3:$ZZ3>0),$D3)textNO


Just extend the C3 and H3 formulas to look at a column further to the right (I picked ZZ). The Conditional Formatting formula also needs to be adjusted. I tweaked it a little to make it more obvious how to adjust the last column. Let me know how this works!
is there a way to get rid of the first score if i enter a 21st score for example, I only need to use the most recent 20 scores
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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