+ Reply to Thread
Results 1 to 5 of 5

Thread: Conditional Formatting Date Before Expiry Date

  1. #1
    Registered User
    Join Date
    12-14-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Thumbs up Conditional Formatting Date Before Expiry Date

    Hi All-

    I'm working on a spreadsheet in Excel 2007, and im having an issue.

    Ok here goes, i have a =now() in cell F1, and an anticipated date of completion in column G, i need column G to hightlight in red the day before it is due. For example today (F1) is 11/21/11, i need everything in column G that is 11/20/11 to highlight in red and so on when the date changes daily.

    Hope i made sense and you can help!

    Thanks Canada
    Last edited by CanadaFriend; 11-21-2011 at 10:20 AM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,608

    Re: Conditional Formatting Date Before Expiry Date

    Change formula in F1 to =TODAY() so that time is not involved.

    Assuming column G is only dates (no times), then select the column G from G2 down, go to Home|Conditional Formatting|New Rule

    Select Format Only Cells That Contain from rule types section

    Select Cell Value >> Equal To and enter =$F$1-1


    Click Format and choose from Fill tab.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Forum Guru sweep's Avatar
    Join Date
    04-03-2007
    Location
    Location: Location:
    MS-Off Ver
    3.0
    Posts
    2,472

    Re: Conditional Formatting Date Before Expiry Date

    Highlight column G

    Conditional formatting > New Rule > Use a formula to determine which cells to format

    Enter =G1=TODAY()-1

    if you want cells highlighted ONLY the day before they're due, or

    =G1>=TODAY()-1

    if you want cells to remain highlighted once they've passed their due date.
    Please disregard anything in the above post. It may well have been edited without my consent, as has been the case with several posts and threads recently.

  4. #4
    Registered User
    Join Date
    11-18-2011
    Location
    North West
    MS-Off Ver
    2007
    Posts
    6

    Re: Conditional Formatting Date Before Expiry Date

    Highlight column G, go to conditional formatting, highlight cell rules, A date occurring, choose tomorrow (or yesterday not sure which you want?). This should do it.
    Last edited by deastham2000; 11-21-2011 at 09:55 AM.

  5. #5
    Registered User
    Join Date
    12-14-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Conditional Formatting Date Before Expiry Date

    Thank you that worked!
    Last edited by CanadaFriend; 11-21-2011 at 10:18 AM. Reason: <Solved>
    Thanks CanadaFriend

+ 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.2.0