+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting of Dates

  1. #1
    Registered User
    Join Date
    11-24-2015
    Location
    Findlay, Ohio
    MS-Off Ver
    2010
    Posts
    1

    Conditional Formatting of Dates

    I need to change the background color of a cell based on the date. This what I am trying to do.

    Cell E3 contains a date and is being compared to a date in cell O3.

    - If E3 is less then O3, the background color needs to be white
    - If E3 is greater than O3 but less then O3+7 days, the background color needs to be yellow
    - If E3 is greater than O3+7 days, the background color needs to be red

    I have been playing around with Conditional Formatting, but cannot get the formulas to change the background color correctly. The background is always red.

    Can someone show me how to enter equations in Conditional Formatting?

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Conditional Formatting of Dates

    Select the cell you want to change

    Conditional Formatting
    New Rule
    Use a formula to determine...
    Assuming the background is already white then only 2 formulas are required

    =(AND(E3 > O3,E3 < O3+7))
    format as yelow

    =(E3 > O3+7)
    format as red

    Use Format painter (paintbrush icon) to copy to other cells
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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. [SOLVED] Multi-Conditional Conditional Formatting and Dates
    By Mousiefuzz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2015, 04:09 AM
  2. Conditional formatting using dates and using dates without years
    By dcef79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2014, 05:35 AM
  3. Replies: 11
    Last Post: 05-04-2014, 08:28 PM
  4. [SOLVED] Conditional Formatting Due dates and Completed Dates
    By shansen79 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-30-2014, 01:33 PM
  5. Conditional Formatting with approaching due dates and completed dates
    By rogernation in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-13-2013, 04:12 PM
  6. Replies: 4
    Last Post: 08-29-2013, 11:23 AM
  7. [SOLVED] Conditional Formatting of: dates within 1 month and dates before today.
    By Luke Smith in forum Excel General
    Replies: 5
    Last Post: 06-18-2013, 07:29 AM

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