I am a golf coach and am currently trying to create a spreadsheet for logging and averaging the scores of my players after every qualifying round. On our team we take the lowest 4 scores out of a players 5 most recent qualifying rounds. The issue is... not every player will qualify on the same day, some players may qualify on Wednesday while others play on Friday...
Currently my formula is not giving me the correct result. For Test Player A the result is correct. Scores of 70, 80, 60 and 72 are taken while the high score of 80 is thrown out. Resulting in an average of 70.5. HOWEVER, Player B is not currently correct. The scores that should be counted are 72, 68, 76 and 75. Resulting in an average of 72.75. As you can see this is not the case.
Can anyone see where I'm making a mistake or help me remedy this?
I have posted my current formula below:
=LET(Length,MATCH(FALSE,ISBLANK(C2:AAA2)),Scores,INDIRECT(CONCAT(ADDRESS(ROW(), COLUMN()+1,4,1),":",ADDRESS(ROW(),COLUMN()+Length,4,1))), FilledScores, FILTER(Scores, NOT(ISBLANK(Scores))), FinalScores, DROP(SORT(DROP(FilledScores, 0, (COUNT(FilledScores)-5)), 1, -1, TRUE), 0, 1), AVERAGE(FinalScores))
THANKS
Currently my formula is not giving me the correct result. For Test Player A the result is correct. Scores of 70, 80, 60 and 72 are taken while the high score of 80 is thrown out. Resulting in an average of 70.5. HOWEVER, Player B is not currently correct. The scores that should be counted are 72, 68, 76 and 75. Resulting in an average of 72.75. As you can see this is not the case.
Can anyone see where I'm making a mistake or help me remedy this?
I have posted my current formula below:
=LET(Length,MATCH(FALSE,ISBLANK(C2:AAA2)),Scores,INDIRECT(CONCAT(ADDRESS(ROW(), COLUMN()+1,4,1),":",ADDRESS(ROW(),COLUMN()+Length,4,1))), FilledScores, FILTER(Scores, NOT(ISBLANK(Scores))), FinalScores, DROP(SORT(DROP(FilledScores, 0, (COUNT(FilledScores)-5)), 1, -1, TRUE), 0, 1), AVERAGE(FinalScores))
THANKS