+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting for cells/dates greater than 18 months

  1. #1
    Registered User
    Join Date
    08-24-2022
    Location
    Knoxville, TN
    MS-Off Ver
    365
    Posts
    1

    Conditional Formatting for cells/dates greater than 18 months

    Hi, I am trying to apply some conditional formatting to a certain column. Basically, if I type in a date that is greater than 18 months, I want it to turn red. It can stay normal if it's within that 18 month window and not past due.

    For instance (everything is within column D),

    Cell D4, I enter 2/12/2019 (this should highlight red)
    Cell D5, I enter 8/22/2022 (this should stay unchanged/no color)

    Please help! By the way, this is in Excel 365.

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

    Re: Conditional Formatting for cells/dates greater than 18 months

    use a rule

    =AND(D4<>"",D4<DATE(YEAR(TODAY()),MONTH(TODAY())-18,DAY(TODAY())))

    IF the date is exactly 18mths - then
    =AND(D4<>"",D4 < = DATE(YEAR(TODAY()),MONTH(TODAY())-18,DAY(TODAY())))
    But you said greater than 18mth hence no =

    for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
    Conditional Formatting

    Highlight applicable range >>
    D4:D100 - Change, reduce or extend the rows to meet your data range of rows

    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:
    =AND(D4<>"",D4<DATE(YEAR(TODAY()),MONTH(TODAY())-18,DAY(TODAY())))

    Format [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK
    Attached Files Attached Files
    Last edited by etaf; 08-24-2022 at 03:28 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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 using months of dates
    By DaSandmanCometh in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-19-2018, 01:33 PM
  3. [SOLVED] Conditional Formatting for Impending Dates Several Months Out
    By STABxWEST in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2018, 02:31 PM
  4. [SOLVED] Conditional Formatting when difference between 2 cells is greater than 5%
    By ebburtis in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-02-2016, 11:24 AM
  5. [SOLVED] Conditional Formatting - The Greater of 2 Cells = Green
    By ThanksAlot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2015, 08:05 PM
  6. Conditional Formatting Greater than surrounding Cells
    By tmiller in forum Excel General
    Replies: 1
    Last Post: 03-30-2007, 12:15 PM
  7. Conditional formatting for the greater of 7 cells
    By guest123 in forum Excel General
    Replies: 8
    Last Post: 01-15-2007, 01:39 PM

Tags for this Thread

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