+ Reply to Thread
Results 1 to 8 of 8

add if blank cell then return "" to existing formula

  1. #1
    Registered User
    Join Date
    04-04-2017
    Location
    Louisiana
    MS-Off Ver
    Office 365
    Posts
    9

    add if blank cell then return "" to existing formula

    Hello,
    I have the following formula and am trying to also add to this the condition that if Cell K and I are blank then the return would be ,"", blank

    =IF(AND(K13>=0.479167,I13<=0.479167),K13-I13-"00:30",K13-I13)

    I have tried adding the ,"" several places and adding more if and statement to no avail.

    It is for adding hours and subtracting a 30 min lunch based on if before or after 11:30 the rest of the formula works as it should, however if my cells are blank it displays#Value and I want it to display blank.

    Please help.

    Thanks,
    Cristy

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: add if blank cell then return "" to existing formula

    I would think this would do it for you... =IF(AND(K13="",I13=""),"",IF(AND(K13>=0.479167,I13< =0.479167),K13-I13-"00:30",K13-I13))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  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,725

    Re: add if blank cell then return "" to existing formula

    What is meant to happen if one or other of the cells is blank? The formula doesn't cover that.
    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.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: add if blank cell then return "" to existing formula

    I took Cristy at their word that both are blank...
    I have the following formula and am trying to also add to this the condition that if Cell K and I are blank then the return would be ,"", blank

  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,725

    Re: add if blank cell then return "" to existing formula

    I was asking Christy, sorry - I should have made that clear! You've provided a perfect solution based on what she asked.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: add if blank cell then return "" to existing formula

    ok, my mistake.

  7. #7
    Registered User
    Join Date
    04-04-2017
    Location
    Louisiana
    MS-Off Ver
    Office 365
    Posts
    9

    Re: add if blank cell then return "" to existing formula

    Thank You Sambo. it works

  8. #8
    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,725

    Re: add if blank cell then return "" to existing formula

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

+ 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. I need my formula to post a "blank" cell instead of a "0"
    By 1losthuman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2016, 09:32 PM
  2. [SOLVED] Formula to Locate Matching Data in Worksheets and return "1" or "0" to a specified Cell
    By hammer2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-30-2015, 04:52 AM
  3. Replies: 8
    Last Post: 07-06-2014, 08:51 PM
  4. [SOLVED] IF Formula not working - need to return "NO" if cell is 1% greater or "YES" if less 1%
    By maryren in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2013, 11:34 AM
  5. solution for the blank cell using the IF function
    By ragnaedge in forum Excel General
    Replies: 4
    Last Post: 08-23-2013, 11:03 AM
  6. Replies: 4
    Last Post: 01-27-2012, 10:57 PM
  7. Replies: 3
    Last Post: 02-16-2011, 02:55 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