+ Reply to Thread
Results 1 to 5 of 5

Color cells based on other cells dates

  1. #1
    Registered User
    Join Date
    07-17-2019
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    5

    Question Color cells based on other cells dates

    I have a column that has cells in it that I need to automatically highlight red given the following criteria:

    --A date in the same row (different column) is before the current date.

    For example: If the date in column B is 8/7/19 and today is 8/8/19, I need the cell in that row in column A to highlight red.

    Cam anyone please help? - I know how to do this in VBA; however, my supervisor does not want to have to push a button to update the sheet.

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

    Re: Color cells based on other cells dates

    Select the range to highlight, e.g. A1:A1000
    Im assuming the columns to check go from column B to column Z, adjust the formula as necessary

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

    =COUNTIF(B1:Z1,"<"&TODAY())>0

    Format as red
    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
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,081

    Re: Color cells based on other cells dates

    Use this:

    =B2< TODAY()

    Supervisors can be a pain!!
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

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

    Re: Color cells based on other cells dates

    This doesnt make sense

    "I need the cell in that row in column A to highlight red."

    The cell in that row in column A is... the cell in column A of a particular row, ie if the row is 2 then you're referring to cell A2.

    Glen and I have different understandings of the problem.
    Im assuming

    given a row, e.g. row 2, you want the cell in column A of that row (which would be A2) to turn red if any cell in that row (row 2) is less than today, though you havent specified how far that row extends, only that it starts in B.

    Glen's approach is to highlight only cells in column B.

    Can you explain what you're after more specifically?

    It sounds like you want to highlight cells in column A if there is a date in that row less than today, ie you want to know what rows have dates in them before today's date and you do that by highlighting the appropriate cell in column A of that row. Is that correct?
    Last edited by Special-K; 08-08-2019 at 08:38 AM.

  5. #5
    Registered User
    Join Date
    07-17-2019
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Color cells based on other cells dates

    Glenn's answer provided a solution to the problem I was having.

    Thank you

+ 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] Changing color format in cells based on 3 range values in a different column cells.
    By konkonmike in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-08-2019, 08:11 AM
  2. Replies: 22
    Last Post: 03-16-2017, 09:42 PM
  3. [SOLVED] color highlight a group of cells based on specific cells' value
    By jilaba in forum Excel General
    Replies: 4
    Last Post: 03-04-2017, 09:05 AM
  4. Color coding cells based on due dates for a series of milestones
    By popeye2295 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-05-2013, 04:24 PM
  5. Replies: 3
    Last Post: 05-02-2012, 09:08 AM
  6. Code to change color and value in calendar cells based on selected dates
    By John74 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2010, 02:01 PM
  7. Replies: 2
    Last Post: 03-01-2007, 04:51 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