+ Reply to Thread
Results 1 to 7 of 7

problem with isblank when cell has a formula in it that is returning a Zero, date or empty

  1. #1
    Registered User
    Join Date
    02-25-2019
    Location
    Newcastle
    MS-Off Ver
    2013
    Posts
    9

    problem with isblank when cell has a formula in it that is returning a Zero, date or empty

    Hi Hope you can help.

    I am trying to get the formula below to work but if the cell is blank but has a formula in the formula return Overdue when it should just be blank

    I have tried two different formulas and same result

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    I can see that due to the B2 cell or the B18 cell having a formula in it (but empty string) it causes the cell to state overdue and that is not the case as it can't be Overdue if no date is provided. I want instead for the cell to show nothing?

    cheers for any help.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: problem with isblank when cell has a formula in it that is returning a Zero, date or e

    I think ISBLANK will return false if there is a formula in the cell, even if it returns null ( "" ).

    I'd start the formula with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-25-2019
    Location
    Newcastle
    MS-Off Ver
    2013
    Posts
    9

    Re: problem with isblank when cell has a formula in it that is returning a Zero, date or e

    Hi,

    Thanks for that, i swopped it around and same result. It is because of the formula in B18 but doesn't seem to make a difference rearranging the formula

    Please Login or Register  to view this content.
    8=100,"Complete", IF(B18 < TODAY(),"Overdue","On Track")))[/CODE]

    I have attached the excel sheet if that helps,

    Cheers
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: problem with isblank when cell has a formula in it that is returning a Zero, date or e

    This formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    seems to work as I would expect it to.

    If B18 is blank, it returns blank. If B18 is NOT blank and A18 = 100, it will return "Complete". If B18 is NOT blank AND A17 is NOT 100, then the date in B18 is compared to today's date ( TODAY() ). If the date is less than TODAY(), it will return "Overdue", otherwise it will return "On Track".

    If the priority is the value in A18, you should swap the first two tests over. Like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In this case, if A18 = 100, the formula will show "Complete" regardless if B18 is blank or has a date in it.

    How would you expect these formulae to function?

  5. #5
    Registered User
    Join Date
    02-25-2019
    Location
    Newcastle
    MS-Off Ver
    2013
    Posts
    9

    Re: problem with isblank when cell has a formula in it that is returning a Zero, date or e

    Hi,

    thanks for that, i added in a = 0 to account for the date 00/01/1900

    eg

    =IF(A1=100, "Complete", IF( B1="", "",
    Please Login or Register  to view this content.
    IF( B1=0, "",IF(B1 < TODAY(), "Overdue", "On Track"))))

    cheers

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: problem with isblank when cell has a formula in it that is returning a Zero, date or e

    You could use OR:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It had not dawned on me that you have set the display zeroes as blank option, so I was focusing on row 18 where you simply had a date in cell B18.

    Might be better if you used a formula in column B that returned a blank rather than hiding zero values, given that it applies to the whole worksheet.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: problem with isblank when cell has a formula in it that is returning a Zero, date or e

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Replies: 4
    Last Post: 07-31-2015, 05:22 AM
  2. Replies: 3
    Last Post: 07-16-2014, 03:28 AM
  3. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM
  4. Replies: 6
    Last Post: 09-16-2010, 05:19 AM
  5. Replies: 2
    Last Post: 07-29-2010, 12:00 PM
  6. [SOLVED] differentiate between a ISBLANK and an actual empty cell?
    By all4excel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-26-2007, 01:23 AM
  7. [SOLVED] using a vlookup, can i use isblank to show an empty cell
    By Sandy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2006, 06: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