+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting for Impending Dates Several Months Out

  1. #1
    Registered User
    Join Date
    06-23-2017
    Location
    Rapid City, SD
    MS-Off Ver
    2013
    Posts
    17

    Conditional Formatting for Impending Dates Several Months Out

    I'm looking to apply conditional formatting to a set of dates.

    Basically, we have several projects that have end dates several months out. I'd like the date to highlight one color when it's less than 18 months until the end date from the current date and a different color if it is less than 12 months.

    Is there a way to do this? I'd also like to do this without using days if possible (e.g. 18 months = 540 days).

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting for Impending Dates Several Months Out

    Use EDATE in your CF formula.

    Select your range of dates (let's say B2:B20).
    Go to Conditional FormattingNew RuleUse a formula to determine which cells to format.
    Enter this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Use the Format button to choose the highlight you want (font colour, fill colour, etc).
    With the range still selected, repeat with this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Choose your other highlight.

    Make sure you do them in that order. If you go to Conditional FormattingManage Rules, you should see the <12 months rule at the top.

    The cell reference in the formula should be the top-left cell of your range - Excel will automatically change it for the rest of the range you have selected.
    If you need to expand the range later, do it using Conditional FormattingManage Rules. You'll see the Applies To range for each rule there.

    Hope that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    06-23-2017
    Location
    Rapid City, SD
    MS-Off Ver
    2013
    Posts
    17

    Re: Conditional Formatting for Impending Dates Several Months Out

    Quote Originally Posted by Aardigspook View Post
    Use EDATE in your CF formula.

    Select your range of dates (let's say B2:B20).
    Go to Conditional FormattingNew RuleUse a formula to determine which cells to format.
    Enter this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Use the Format button to choose the highlight you want (font colour, fill colour, etc).
    With the range still selected, repeat with this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Choose your other highlight.

    Make sure you do them in that order. If you go to Conditional FormattingManage Rules, you should see the <12 months rule at the top.

    The cell reference in the formula should be the top-left cell of your range - Excel will automatically change it for the rest of the range you have selected.
    If you need to expand the range later, do it using Conditional FormattingManage Rules. You'll see the Applies To range for each rule there.

    Hope that helps.
    Worked perfectly! Thank you!

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting for Impending Dates Several Months Out

    You're welcome. Thanks for the feedback, the rep and marking the thread as Solved.

+ 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] Conditional Format - Dates greater than 18 months and 24 months
    By amandavan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-03-2024, 04:08 PM
  2. Conditional Formatting to highlight 'between months'
    By shauneyd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2017, 09:23 AM
  3. How to do Conditional Formatting for next three months
    By jcsl1g13 in forum Excel General
    Replies: 7
    Last Post: 02-22-2017, 03:00 PM
  4. Conditional Formatting using months
    By buksa in forum Excel General
    Replies: 8
    Last Post: 07-06-2014, 10:12 PM
  5. setting up a IF & TODAY formula to flag impending dates
    By toddy1980 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-29-2013, 04:58 AM
  6. Conditional formatting for months
    By newuanda in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-13-2010, 03:12 PM
  7. Conditional Formatting - Months
    By LM100 in forum Excel General
    Replies: 22
    Last Post: 03-29-2009, 12:47 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