woody69
Journeyman Pro
I'm putting together an Excel spreadsheet that can automatically calculate each players handicap based on their recent Stableford score and capture that score in an overall table.
I have put something simple together that does all that, but the issue I currently have is when a handicap is reduced between buffer zones.
As an example:
If the initial value is 21.3 (Cat 4) then I need to minus n*0.4 from this until it falls below 21 (Cat 3) and then do n*0.3
Unfortunately if n=3, this is what is currently happening in the sheet:
21.3-(3*0.4)
21.3-(1.2) = 20.1
This is obviously incorrect as it should be
21.3-(1*0.4) = 20.9
20.9-(2*0.3) = 20.3
or to put it another way
21.3-(1*0.4) = 20.9
20.9-(1*0.3) = 20.6
20.6-(1*0.3) = 20.3
I have thought about some Do While or Do Until loop that checks if a cell is TRUE or not, i.e. work out how many shots they are to be cut and keep taking 1 away until it gets to 0, but I'm struggling to get my head around it... Any tips/guidance?
I have put something simple together that does all that, but the issue I currently have is when a handicap is reduced between buffer zones.
As an example:
If the initial value is 21.3 (Cat 4) then I need to minus n*0.4 from this until it falls below 21 (Cat 3) and then do n*0.3
Unfortunately if n=3, this is what is currently happening in the sheet:
21.3-(3*0.4)
21.3-(1.2) = 20.1
This is obviously incorrect as it should be
21.3-(1*0.4) = 20.9
20.9-(2*0.3) = 20.3
or to put it another way
21.3-(1*0.4) = 20.9
20.9-(1*0.3) = 20.6
20.6-(1*0.3) = 20.3
I have thought about some Do While or Do Until loop that checks if a cell is TRUE or not, i.e. work out how many shots they are to be cut and keep taking 1 away until it gets to 0, but I'm struggling to get my head around it... Any tips/guidance?