+ Reply to Thread
Results 1 to 11 of 11

wanting Formulas to remain blank until data entered

  1. #1
    Registered User
    Join Date
    02-16-2019
    Location
    Nebraska, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    wanting Formulas to remain blank until data entered

    I made a formula for automatically figuring our Golf handicaps, the formula works great, but how can I leave the handicap in the weeks we haven't played yet to remain blank, until data is entered in box above? See pic included for formula used. Also can i write this formula in a shortened form?

    Thanks for any help

    hdcp pic.PNG

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,420

    Re: wanting Formulas to remain blank until data entered

    Welcome to the forum!

    Like this for K4:

    =IF(K3="","",your_formula)

    And the formula:

    =(SUM($C3:K3)-(rows($C3:K3)*36))*0.8

    So, in all:

    =IF(K3="","",(SUM($C3:K3)-(rows($C3:K3)*36))*0.8)
    Last edited by AliGW; 02-16-2019 at 12:37 PM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,420

    Re: wanting Formulas to remain blank until data entered

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: wanting Formulas to remain blank until data entered

    You might want to check the results of that formula, Ali!

    ROWS($C3:K3) will give a single 1, not an array of 1's.

    This one in C3, then dragged right will give the correct handicap scores.

    =IF(C3="","",ROUND(AVERAGE(INDEX($C3:C3-36,))*0.8,1))

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,420

    Re: wanting Formulas to remain blank until data entered

    I wasn't trying to give an array of 1s, Jason - I was trying to return the number of rows in the range defined.

    The OP has shown 36 being subtracted from each value in the range, not just once from the range. In what way do you think my formula does not do the same as the one in the image?

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: wanting Formulas to remain blank until data entered

    Exactly that way, Ali. Your formula only subtracts 36 once, not from each value.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,420

    Re: wanting Formulas to remain blank until data entered

    Ah, yes!

    I meant this:

    =IF(K3="","",(SUM($C3:K3)-(COLUMNS($C3:K3)*36))*0.8)

    Doh!!!

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: wanting Formulas to remain blank until data entered

    You need stronger coffee, Ali

    You would need something like this to get the correct result with your method.

    =IF(K3="","",((SUM($C3:K3)-(COLUMNS($C3:K3)*36))*0.8)/COLUMNS($C3:K3))

    Looking at yours, I just realised I can drop the index array from my formula by moving the subtraction.

    =IF(C3="","",ROUND((AVERAGE($C3:C3)-36)*0.8,1))
    Last edited by jason.b75; 02-16-2019 at 02:11 PM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,420

    Re: wanting Formulas to remain blank until data entered

    Possibly - but the OP has been back twice and not bothered to comment on either of our offers of help, so I'm not going to bother any more. Have a nice evening, Jason!

  10. #10
    Registered User
    Join Date
    02-16-2019
    Location
    Nebraska, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: wanting Formulas to remain blank until data entered

    Got it Thanks for everyones help. I did work with this formula below

    =IF(K3="","",(AVERAGE(C3-36,D3-36,E3-36,F3-36,G3-36,H3-36,I3-36,K3-36)*0.8))

  11. #11
    Registered User
    Join Date
    02-16-2019
    Location
    Nebraska, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: wanting Formulas to remain blank until data entered

    Sorry for not Commenting, I was retrying formulas u suggested and trying to solve when i was still getting errors. i was doing trial and error. lots of errors, but we did get there, and Thank you very much for your help. i just noticed your last post and will also try it with that formula. Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula Cell to remain Blank Until Data Entered
    By Aristillus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2016, 11:08 AM
  2. Replies: 11
    Last Post: 11-10-2015, 07:13 PM
  3. Need field to remain blank unless data is entered.
    By ranchqueen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2013, 11:51 PM
  4. Replies: 3
    Last Post: 10-30-2013, 09:19 AM
  5. div0 error with formula when no data entered (wanting to see 0)
    By Lasers Reef in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-23-2013, 06:05 AM
  6. Replies: 6
    Last Post: 05-01-2012, 10:34 PM
  7. [SOLVED] Formulas returning a blank if no data entered in one cell
    By Mifty Jackson in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-31-2005, 12:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1