+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting - Due Dates

  1. #1
    Registered User
    Join Date
    09-27-2011
    Location
    Dundalk, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    8

    Unhappy Conditional Formatting - Due Dates

    Hi guys,

    I am pulling my hair out over this and would be forever in your debt if solution provided.
    I have an excel sheet 2003 with one column set with various future/current dates in format DD/MM/YYYY.
    These dates contain due dates of annual returns and i'm looking for some formulas to identify when they are due. 3 conditions in total.
    1. Cell to highlight YELLOW up to 30 days before cell date
    2. Cell to highlight BLUE up to 28 days after cell date
    3. Cell to highlight RED over 28 days after.

    Can this be done?

    Thanking you in advance.

    Niall

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Conditional Formatting - Due Dates

    Hi Clicky;

    You can use conditional formatting on the column.
    You'll need 3 conditions. The =Today() function will bring up the current day to adjust.
    If Cell Value is between =Today()+30 and =Today()-1
    If Cell Value is Between =Today() and Today()-28
    If Cell Value is Less than Today()-28
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Formatting - Due Dates

    Assuming the dates are in column D:

    1) Highlight column D (it's important to know what the first cell in the highlighted range is, for instance D1)

    2) Apply the following Conditional Formatting settings:

    Condition1: Formula Is: =D1-TODAY()>28
    Formats... Pattern: RED color

    Condition2: Formula Is: =D1-TODAY()>0
    Formats... Pattern: BLUE color

    Condition3: Formula Is: =D1-TODAY()>=-28
    Formats... Pattern: YELLOW color
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,860

    Re: Conditional Formatting - Due Dates

    Assume for this example that the dates are in column A. I also assume that all dates get at least one of these three colors. I suggest making yellow the default color, then you only need two rules. Set all dates in the column to have yellow fill. Then you need the following formulas in conditional formatting:

    For blue
    =AND(TODAY()>A1-30,TODAY()<=A1+28)

    For red
    =TODAY()>A1+28
    Last edited by 6StringJazzer; 09-27-2011 at 10:01 AM. Reason: added blue text to correct error
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Registered User
    Join Date
    09-27-2011
    Location
    Dundalk, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditional Formatting - Due Dates

    Hi Guys,

    Really sorry for the delay in thanking you all for dedicating your time and expertise in helping my with the above.
    I have got it working and running with it for several months now without any issues. My bosses in work love the sheet and ease of use.

    Top marks!

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Formatting - Due Dates

    Thanks for the feedback, better late than never!

+ 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