+ Reply to Thread
Results 1 to 3 of 3

Highlight cells between 2 dates

  1. #1
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Highlight cells between 2 dates

    I am using conditional formatting to highlight cells
    by using the following formula, but doesn't work,
    what am I missing?, please help.

    cell A1 has a date
    cell A2 =EDATE(A1,1)

    I want to highlight cells A1 and A2


    =AND($D$13>TODAY(),TODAY()<5)

    I want cells to be highlighted between today & 5 days only.

  2. #2
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Highlight cells between 2 dates

    sorry, to reply to my own post !

    I got it working with this formula
    =AND(B1>=TODAY(),B1<=TODAY()+5)

    cell A1 has a date
    cell B1 =EDATE(A1,1)


    the only problem now is that the cell that has
    the EDATE doesn't get highlighted

  3. #3
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Highlight cells between 2 dates

    Hi mikehk,

    This formula will not highlight in B1 because B1 will be outside of the 'today' and '5 days' range. If you want B1 to highlight whenever A1 is between today and 5 days from today, use this conditional format formula for A1 and copy across to B1:

    Please Login or Register  to view this content.
    The '$' sign ensures that the formula still references A1.
    Did I help? Click *- add to my rep.

+ 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. USing VBA to highlight cells between dates
    By cthamas222 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2016, 08:25 AM
  2. [SOLVED] How Can I: Highlight a Range of Cells Based on Dates?
    By Sandcastle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-12-2016, 05:55 PM
  3. [SOLVED] How do I highlight cells that do not contain valid dates.
    By AndyRoo119 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-09-2015, 09:04 AM
  4. [SOLVED] Highlight cells between two dates
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2015, 05:05 AM
  5. [SOLVED] Help with Macro to highlight cells between dates
    By Slomaro2000 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-27-2015, 03:29 PM
  6. [SOLVED] Highlight Cells Based on Dates
    By pugsly8422 in forum Excel General
    Replies: 3
    Last Post: 01-27-2015, 01:09 PM
  7. automatically highlight cells with expired dates?!
    By cwest123456 in forum Excel General
    Replies: 2
    Last Post: 08-01-2005, 02:05 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