+ Reply to Thread
Results 1 to 5 of 5

Excel 2010 Conditional Formatting to Highlight input cells based on Dates

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    Myrtle Beach, SC
    MS-Off Ver
    Excel 2013
    Posts
    12

    Angry Excel 2010 Conditional Formatting to Highlight input cells based on Dates

    I'm a newbie to the forum, so bear with me.

    I need a way to highlight a cell either Green, Yellow, or Red based upon a comparison of a Due Date (Column G) vs. Today's Date (cell B2) within a formatted table. I'm going to apply this formatting to a bunch of columns, but each column will have different date criteria.

    Here's my sample criteria for cells in column M:
    No Format: if Due Date cell (G7) is blank
    Green: 10 or more days until due date
    Yellow: 7-9 days until due date
    Red: 6 or fewer days until due date
    Currently in column M, I only have Blank, Red, and Green formatted and they are working. But I want it to work on all three colors

    I have column P formatted, but it stops evaluating at Yellow. Here's my criteria for column P:
    No Format: if Due Date cell (G7) is blank
    Green: 8 or more days until due date
    Yellow: 5-7 days until due date
    Red: 4 or fewer days until due date


    The other "Due Date" columns (S,V,Y,Z-AF) need to all have the same color coding, but will have different "days until due date" tolerances.

    I'd also like it to either "lock" the color based on the actual date typed in to the Due Date column, or remove the color formatting when the actual date is input.

    Sample workbook is attached.

    THANKS for helping.
    cbb
    Attached Files Attached Files
    Last edited by chrisb84; 03-19-2013 at 12:55 PM. Reason: grammer error

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Excel 2010 Conditional Formatting to Highlight input cells based on Dates

    just use the formula as you have written for green and use stop

    so
    =($G7-$B$2)>=8
    =($G7-$B$2)>=5
    =($G7-$B$2)>=0
    what to do if it goes past today
    then use
    =($G7-$B$2)<5 instead, would cover 4 days and if it went beyond today so -ve numbers

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    Myrtle Beach, SC
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Excel 2010 Conditional Formatting to Highlight input cells based on Dates

    etaf,

    Thanks, the formula corrections are working great! Now, is there a way to either "lock" the highlighting when the "Actual Completion Date" is keyed in, or, stop highlighting once an actual date is keyed in?

    cbb

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Excel 2010 Conditional Formatting to Highlight input cells based on Dates

    yes, you can add an IF statement

    =IF( M7 = "", ($G7-$B$2)>=8, FALSE)

    so if the cell is blank then it will do the formatting

  5. #5
    Registered User
    Join Date
    03-19-2013
    Location
    Myrtle Beach, SC
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: Excel 2010 Conditional Formatting to Highlight input cells based on Dates

    etaf,

    Works like a champ. Thanks for your help on this!

    cbb

+ 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