+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting with a date range

  1. #1
    Forum Contributor jason.hampton's Avatar
    Join Date
    04-20-2012
    Location
    Republic of Texas
    MS-Off Ver
    2007, 2010, 2016
    Posts
    138

    Conditional Formatting with a date range

    All,

    I am attempting to create a formula (to no avail) for Column E; for dates older than 90 days, and future. Let me explain. In the attached workbook you will notice I have several rules for Column E. The ones I am having trouble with are for "Company 3 & 4".

    My goal would be to have a formula for dates in Column E greater than 90 days to be indicated with red fill (Company 3, cell E4); and to create a formula to indicate if a future date was entered with some other color (Company 4, cell E5).

    Cells F1:G1 are for Today's Date.

    Any help would be appreciated. I've searched the forums and found many other great ideas; just not one I can modify to fit my situation.

    Thanks in advance.
    Attached Files Attached Files
    Best Regards,

    Jason Hampton
    Freedom Isn't Free

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Conditional Formatting with a date range

    Create a 4th conditional formating by
    New rule/ Use a formula to ...
    type the formula:
    =ABS($F$1-E2)>90
    Choose the format
    Apply to E:E
    Quang PT

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Conditional Formatting with a date range

    It's not really necessary to apply those CF rules to a whole column, so you might like to select cell E2 and click on Conditional Formatting | Manage rules and change each of the ranges for your existing 3 rules in turn and make them $E$2:$E$100 for example, then click OK or apply.

    Select the range of cells that you want the new conditions to apply to (i.e. from E2 to E100), and then click on CF | New Rule | Use a Formula... , then enter this formula in the dialogue box:

    =AND(ISNUMBER($E2),$E2>$F$1)

    Click on the Format button | Fill tab and choose the colour that you want for future dates (e.g. Blue) then click OK twice to exit the dialogue box.

    Then repeat, but use this formula in the dialogue box:

    =AND($E2<>"",$E2<=$F$1-90)

    and choose Red for this condition.

    When you exit the CF dialogue, Excel will automatically adjust the cell ranges to suit the range that you had selected. If you need more cells to apply the conditions (there are now 5 of them), then you can use the Format Painter icon.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor jason.hampton's Avatar
    Join Date
    04-20-2012
    Location
    Republic of Texas
    MS-Off Ver
    2007, 2010, 2016
    Posts
    138

    Re: Conditional Formatting with a date range

    Pete / Bebo,

    Your feedback is much appreciated! Thanks again.

+ 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. Date range conditional formatting that hilights a different cell
    By cbrandonsmith in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-09-2014, 08:33 PM
  2. Conditional Formatting with date range issue
    By luciedefreitas in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2014, 07:36 AM
  3. [SOLVED] Conditional formatting dates based on date range and day - pt2
    By dancing-shadow in forum Excel General
    Replies: 5
    Last Post: 01-13-2014, 07:12 AM
  4. [SOLVED] Conditional formatting dates based on date range and day
    By dancing-shadow in forum Excel General
    Replies: 4
    Last Post: 01-07-2014, 01:45 PM
  5. Conditional formatting date range
    By rosetynt in forum Excel General
    Replies: 10
    Last Post: 01-28-2013, 06:15 PM
  6. Replies: 8
    Last Post: 11-15-2011, 12:29 PM
  7. Conditional formatting based on date range
    By RGB in forum Excel General
    Replies: 3
    Last Post: 05-23-2006, 12:45 PM
  8. [SOLVED] How do I set a date range for conditional formatting in a macro?
    By billo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2005, 03:06 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