+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting a range of dates

  1. #1
    Registered User
    Join Date
    08-16-2017
    Location
    Alnwick
    MS-Off Ver
    2013
    Posts
    8

    Conditional Formatting a range of dates

    Hi Guru's,

    I have a workbook with a range of dates. What I want to do is make all cells in the range turn green if the highest date in the range is between the dates in specified cells.

    I have the following:


    A1= Today() A2= Today()-30

    B1:B6= dates that an event took place



    I need the whole range to be green if the MAX date is between A1 and A2, then red if it is less than A2.

    Please can you help me?

    Many Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Conditional Formatting a range of dates

    Rule for green:

    =AND(MAX($B$1:$B$6)<=$A$1,MAX($B$1:$B$6)>=$A$2)

    Rule for red:

    =MAX($B$1:$B$6)<$A$2)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-16-2017
    Location
    Alnwick
    MS-Off Ver
    2013
    Posts
    8

    Re: Conditional Formatting a range of dates

    Ali,

    That works great. Thank you for your help.

    Chris

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Conditional Formatting a range of dates

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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 Formatting to Highlight a Range when Today is between Two Dates DD/MM
    By AliGW in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-04-2015, 11:10 AM
  2. [SOLVED] Conditional Formatting a range of dates
    By Seasons23 in forum Excel General
    Replies: 10
    Last Post: 03-26-2015, 03:37 PM
  3. Conditional formatting comparing 2 dates and using range.
    By K_berly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-25-2015, 11:54 AM
  4. [SOLVED] Conditional formatting that applies to dates within a range
    By Richaw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2014, 08:51 PM
  5. [SOLVED] Conditional formatting based on dates in a range of cells
    By pmerobertson in forum Excel General
    Replies: 8
    Last Post: 01-10-2013, 12:50 PM
  6. Conditional Formatting - Range of Dates
    By Ann in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2006, 11:30 AM
  7. [SOLVED] Conditional formatting - range of dates
    By Annabelle in forum Excel General
    Replies: 0
    Last Post: 05-24-2006, 10:55 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