Golf Simulator League - Calculating Golf Handicaps for Google Sheets

tcmaes

New Member
Joined
Feb 6, 2014
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Good morning. I've only posted on this website a couple times, although I have been an admirer for many years. I am always impressed by the solutions provided by this community.

My question today relates to creating a spreadsheet that automatically calculates the handicap indexes of golfers in my golf league. The handicap index is calculated based on all past golf rounds played. I have a handy table outlining how the handicap index is calculated based on the first round played until any subsequent rounds played.

1.PNG


Currently, I have been using a combination of IF statements, ROUNDDOWN, AVERAGE, and SMALL functions to calculate the handicap indexes. However, as the number of golf rounds increases, this method has become increasingly complex. It is especially challenging when there are 21 or more golf rounds, as this requires calculating the average of the lowest 8 golf rounds out of the last 20 golf rounds.

For the 21+ golf rounds (orange), I have attempted to use an ArrayFormula along with SMALL, OFFSET, LARGE, and ROW functions. However, I have not been able to get it to work consistently, particularly when there are blank cells in between. Moreover, the formula does not seem to work when combined with the IF statements I created for the first 20 golf rounds (green).

If there are any experts who can help me simplify my worksheet to resolve this issue, I would be immensely grateful. Please find an example dataset below and the expected output. Here is also a link to a shared google sheet that I created with four sample datasets: Excel Help

2.png
 
Last edited by a moderator:
Ok, how about
Excel Formula:
=LET(n,{3,6,9,12,15,17,19,20},MAP(SEQUENCE(COUNTA($B$4:$B$200)),LAMBDA(a,LET(d,C3:INDEX(C3:C200,a),f,FILTER(d,d<>""),r,COUNT(f),x,query(f,"Select * offset "&max(0,r-20)),IF(r<3,"NER",ROUNDDOWN(AVERAGE(SORTN(x,XMATCH(r,n,-1))),1))))))
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
You're welcome & thanks for the feedback.
 
Upvote 1
I came across this discussion while looking for this exact golf handicap solution.

Question though, was Fluff's solution here an add-on to the formula already present in tcmaes' Excel Help example linked above? Or was it a stand alone replacement? I have attempted to deploy this solution as a standalone formula and get nothing but 'NER' all the way down the column. I am very green when it comes to intricate Excel formulas. Perhaps I need to replace some variables or something in Fluff's formula?

I realize this discussion is old and I will ask a new question on this board if I get no response here.

Thanks in advance for any insight.
 
Upvote 0
The formula relies on cols B & C only.
 
Upvote 1
Fluff. Thank you for the quick response. And I apologize for my lack of understanding here.

When you say it relies on columns B and C, are you talking about in the example sheet that tcmaes linked? Or on a fresh sheet?

So, on a fresh sheet, my Column B should be a player's score and Column C should be this formula? Or, as in tcmaes' sheet, Column B should be week 1, week 2, etc. and Column C should be a players score and THEN Column D should be this formula?

Again, sorry for the confusion and thanks fo r all help.
 
Upvote 0
It relies on cols B & c of the sheet that tcmaes provided.
 
Upvote 1

Forum statistics

Threads
1,224,812
Messages
6,181,104
Members
453,021
Latest member
Justyna P

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