• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Limiting SUM answers to a certain value

Jim

New Member
Hello, I need help with a couple things...some background...I am managing a spreadsheet for golf scores for our league. There are seven weeks. My questions are...

1) For the first week I will enter everyones score in column B. Column C I am creating a formula to subtract the par of the golf course that day from the score the person shot to create a formula. Everything is correct in my formula, but our maximum handicap is 30, and as you can see cell C6 exceeds that number. How can I create this formula so if someones handicap exceeds 30 it still only lists 30? I will need to do this every week in columns F, L, R, X, AD, and AJ.

2) I am trying to make columns F, G, and H only list a value when I have a score added in column E. I have column F correct with the exception of limiting the value as mentioned above. And I think column H is correct, but column G I am having trouble with. I want an average of column C and F, but only when there is a value in column E. As it is now, it looks fine, but when I delete the score of 88 in E4, the cell has ##### in it. I just want the entire sheet blank until I add the score for that week so when we are on say week 2, there isn't all these numbers and formulas in the following weeks.

3) for columns AO, AP, and AQ I need to do averages. I will just explain column AO as if I know how to do that I can do AP and AQ myself. So AO I want averages of columns B, E, K, Q, W, AC, and AI, but I want this to update weekly. So If I were to put the formula in of =SUM(B4,E4,K4,Q4,W4,AC4,AI4)/7 but it is only week 2, it will be dividing those two scores by 7, giving me an innaccurate number. How can I fix this?
 

Attachments

Hi ,

I am sure others will answer your questions , but I would like you to go through the following 2 threads which also dealt with golf scoring.

1. http://chandoo.org/forum/threads/ho...ual-39-s-golf-handicap-to-hole-handicap.8563/

2. http://chandoo.org/forum/threads/ho...in-a-golf-match-format.8894/page-6#post-56317

Narayan
I appreciate your quick reply, but these posts aren't exactly what I'm asking and I can't find a way to use info in these posts for my specfic excel sheet
 
Hi Jim ,

The answer to your first question is the MAX function ; using a formula such as :

=MAX(30,A1)

ensures that if the value in cell A1 exceeds 30 , the return value will be clamped to 30 ; putting the above formula in cell B1 will ensure that the highest value that B1 can have will be 30.

The answer to the second question is to change your formula to :

=IF(E4="","",(C4+F4)/2)

For the third question , you can use either of the following 2 formulae :

1. =AVERAGE(B4,E4,K4,Q4,W4,AC4,AI4)

The AVERAGE function ignores blanks , but not zeroes.

2. =AVERAGEIF($B$3:$AM$3,"Gross Score",$B4:$AM4)

Narayan
 
Hi Jim ,

Sorry about the mistake in my first answer , the correct function to use is the MIN function , as in :

=MIN(30,A1)

Narayan
 
Hi Jim ,

Sorry about the mistake in my first answer , the correct function to use is the MIN function , as in :

=MIN(30,A1)

Narayan
Thank you so much! That solved all of my problems. I am just getting into excel and I just love it because its like a puzzle. I learned so much on my own, just couldn't figure these out. Thanks again.
 
Back
Top