+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting. Allow for blank cells

  1. #1
    Registered User
    Join Date
    01-09-2011
    Location
    Liverpool, UK
    MS-Off Ver
    Excel 2007
    Posts
    6

    Conditional formatting. Allow for blank cells

    Please help. I've tried various formulas to no avail (i'm no expert!)

    In column F, I have a series of dates.. It is formatted as a date and appears dd/mm/yy. In column L, I have conditional formatting that changes the cell colour to amber or red if todays date is 28 or 56 days from the date inputted into F. So far so good.
    If there is no information in F5 (the next free row), I want no information in L5 either. However I am getting 28/01/00 with the cell filled in red. I assume that it is seeing a date in F5 even though I am not? How can I get my unused lines to be completely empty.

    I've tried to be clear, hope this is ok.
    Attached Files Attached Files
    Last edited by simesPSB; 01-11-2011 at 08:53 AM. Reason: clarity

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

    Re: Formula help

    Change the formula to: =IF(F5="","",F5+28) in cell L5

    Copy that up and down.

    You'll also need to change the conditional formatting:

    For the red condition: =AND(F3<>"",TODAY()>F3+56)

    For yellow: =AND(F3<>"",TODAY()>F3+28)

    Regards
    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
    01-09-2011
    Location
    Gabrieola
    MS-Off Ver
    2003,2007
    Posts
    42

    Re: Formula help

    I have read the forum rules, your title need to be edited to refelct on your question.

  4. #4
    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: Formula help

    Hi, and welcome to the forum.

    Please note the forum rules which require thread titles to be meaningful. Just saying "formula help" is no good. We know you want help otherwise you wouldn't be here. I'll change it on this occasion.

    You'll always get a result in L5 of 28 since there's no if test to do anything else. Use instead

    Please Login or Register  to view this content.
    And then you'll need to add another conditional format along the same lines to show a white background.

    HTH
    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.

  5. #5
    Registered User
    Join Date
    01-09-2011
    Location
    Liverpool, UK
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Formula help

    Quote Originally Posted by TMShucks View Post
    Change the formula to: =IF(F5="","",F5+28) in cell L5

    Copy that up and down.

    You'll also need to change the conditional formatting:

    For the red condition: =AND(F3<>"",TODAY()>F3+56)

    For yellow: =AND(F3<>"",TODAY()>F3+28)

    Regards
    Thanks for this, I feel like I am getting somewhere. However, I now get no dates appearing in L5 under any circumstance. I need todays date plus 28 days to appear (as well as yellow/red colours when overdue by 28/56 days). I need it to have nothing if F5 is empty.

  6. #6
    Registered User
    Join Date
    01-09-2011
    Location
    Liverpool, UK
    MS-Off Ver
    Excel 2007
    Posts
    6

    Thumbs up Re: Formula help

    Quote Originally Posted by simesPSB View Post
    Thanks for this, I feel like I am getting somewhere. However, I now get no dates appearing in L5 under any circumstance. I need todays date plus 28 days to appear (as well as yellow/red colours when overdue by 28/56 days). I need it to have nothing if F5 is empty.
    Apologies. I obviously did something wrong earlier. It works perfectly. Thanks so much for your help!

+ 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