+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : 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 11:20 AM.

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

    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.
    Where there is a will there are many ways.

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

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

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,446

    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.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  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 10: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 11: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.6.0 RC 1