+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting to highlight 'between months'

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2010
    Posts
    12

    Conditional Formatting to highlight 'between months'

    Hi Guys,

    I hope I am not over-thinking this one but I am trying to work out (if possible) conditional formatting for the following:

    I have a list of set dates in column H starting with H2 and the date is formatted as 06/03/2017.

    I would like conditional formatting to highlight cells in this range that are 'between 3 and 4 months old'.

    Can this be done? I have been playing around with EDATE function like so:

    Greater than =EDATE(TODAY(),-3) (This highlights cells less than 3 months ago for me)

    and

    Less than =EDATE(TODAY(),-4) (This highlights cells more than 4 months ago for me)

    But, as far as getting a function to highlight 'between 3 and 4 months' I cannot seem to get it.

    Many thanks for any suggestions in advance guys!

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

    Re: Conditional Formatting to highlight 'between months'

    Try this

    Select A1 where it is one of your dates

    Conditional Formatting
    New Rule
    Use a formula to determine...

    =AND(A1<=EDATE(TODAY(),-3),A1>=EDATE(TODAY(),-4))

    Format as required
    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.

  3. #3
    Registered User
    Join Date
    05-08-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Conditional Formatting to highlight 'between months'

    Quote Originally Posted by Special-K View Post
    Try this

    Select A1 where it is one of your dates

    Conditional Formatting
    New Rule
    Use a formula to determine...

    =AND(A1<=EDATE(TODAY(),-3),A1>=EDATE(TODAY(),-4))

    Format as required
    Use Format painter (paintbrush icon) to copy to other cells
    Perfect Special-K,

    Thank you so much for taking the time to reply - I really appreciate it.

    Regards,

    Shauneyd

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

    Re: Conditional Formatting to highlight 'between months'

    I would test thoroughly with consecutive dates just to make sure this does work.
    I only tested with monthly differences, ie 06/03/2017, 06/02/2017, 06/01/2017.

+ 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. 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
  2. Conditional Formatting using months
    By buksa in forum Excel General
    Replies: 8
    Last Post: 07-06-2014, 10:12 PM
  3. [SOLVED] Conditional formatting for rolling 12 months
    By SChapman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-29-2013, 08:39 AM
  4. Conditional Formatting to turn Cell red in 12 months
    By rjfireresq in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-11-2012, 01:15 AM
  5. Conditional formatting for months
    By newuanda in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-13-2010, 03:12 PM
  6. Replies: 2
    Last Post: 08-16-2009, 06:16 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