+ Reply to Thread
Results 1 to 9 of 9

Return blank if Cell is blank or contains formula)

  1. #1
    Registered User
    Join Date
    12-21-2010
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    83

    Return blank if Cell is blank or contains formula)

    Im trying to return a "" if L2 is blank. However L2 contains a formula which returns blank if a test is not met. So my formula bellow does not work because the cell is blank only to the eye, it actually contains a formula.


    =IF(L2="","",IF(L2<800,"Y","N"))

    I tried

    =IF(ISTEXT (L3),"",IF(L3<800,"Y","N"))

    but did not work

    Any help much appreciated.

    Thanks
    Last edited by oo0tommyk0oo; 12-28-2010 at 06:29 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Return blank if Cell is blank or contains formula)

    However L2 contains a formula which returns blank if a test is not met.
    If the formula in L2 really returns a null string, the second formula should work fine. What's the formula in L2?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Return blank if Cell is blank or contains formula)

    Hi,

    Stating the obvious I'm assuming you are entering this formula somewhere other than L2.

    You are misunderstanding what the IF is testing. It's not testing whether L2 has a formula but what the results of that formula are. If the formula in L2 really does return null, i.e. a complete blank then your formula will return a null. If it's not then L2 is not returning a blank.

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    12-21-2010
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Return blank if Cell is blank or contains formula)

    =IF(COUNTIF('Assembly Location'!$A$2:$A$500,K3),VLOOKUP(K3,'Assembly Location'!$A$2:$B$500,2,FALSE)," ")

    This is in L2

    Thanks for any help

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Return blank if Cell is blank or contains formula)

    =IF(COUNTIF('Assembly Location'!$A$2:$A$500,K3),VLOOKUP(K3,'Assembly Location'!$A$2:$B$500,2,FALSE), " ")

    That's returning a space, not a blank.

  6. #6
    Registered User
    Join Date
    12-21-2010
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Return blank if Cell is blank or contains formula)

    LOL

    Thank you very much

    Im such a rookie!

  7. #7
    Registered User
    Join Date
    03-22-2010
    Location
    massachusetts
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Return blank if Cell is blank or contains formula)

    I have this same issue.
    I am trying to get cells to populate for certain criteria. And i have a formula with ISBLANKs referring to another cell with ISBLANKs and I dont think it is reading it as truly blank.

    I have attached an example.

    The column K (where "Action" is populated all the way down) should be blank until something is populated in cells A, B, C or J.

    Any ideas?

    I appreciate your help!

  8. #8
    Registered User
    Join Date
    03-22-2010
    Location
    massachusetts
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Return blank if Cell is blank or contains formula)

    here's the attachment
    Attached Files Attached Files

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Return blank if Cell is blank or contains formula)

    camdameron, please take a few minutes to read the forum rules, and then start your own thread.

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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