+ Reply to Thread
Results 1 to 12 of 12

Color-highlighting cells with dates which pass deadlines

  1. #1
    Registered User
    Join Date
    09-25-2015
    Location
    Oslo
    MS-Off Ver
    2010
    Posts
    9

    Color-highlighting cells with dates which pass deadlines

    Hi experts,
    I have a large to-do list with deadline dates associated with certain tasks.
    I am trying to figure out how I can find a function in excel which will help me highlight with red color the cells which have passed the deadline, so that I can see them more clearly.
    Any good hints?
    Thanks a bunch!

  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,885

    Re: Color-highlighting cells with dates which pass deadlines

    You will need to set a conditional formatting rule. CF is on the main ribbon.
    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
    09-25-2015
    Location
    Oslo
    MS-Off Ver
    2010
    Posts
    9

    Re: Color-highlighting cells with dates which pass deadlines

    Thanks,
    but option would you recommend to choose, so that the dates would be compared always with today's date (not a fixed date) and the ones passed the deadlines would be highlighted?

  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,885

    Re: Color-highlighting cells with dates which pass deadlines

    Will you please attach a sample Excel workbook? Nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.

  5. #5
    Registered User
    Join Date
    09-25-2015
    Location
    Oslo
    MS-Off Ver
    2010
    Posts
    9

    Re: Color-highlighting cells with dates which pass deadlines

    Hi,
    Many thanks for your follow up. I have made up an example of what I am looking for in terms of the solution. Hope the attachment is accessible, I have followed your recommendation.
    Thanks again!
    Dennis
    Attached Files Attached Files

  6. #6
    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,885

    Re: Color-highlighting cells with dates which pass deadlines

    The dates marked in red are before the deadlines ...

  7. #7
    Registered User
    Join Date
    09-25-2015
    Location
    Oslo
    MS-Off Ver
    2010
    Posts
    9

    Re: Color-highlighting cells with dates which pass deadlines

    Sorry,
    I might have been unclear. Please ignore the dates in the merged cells. The function I am looking for applies to cells E4, H4, E7 and H7.
    As you can see, today's date is 26.10.2017, so the deadlines in E4 is past due, i.e. the action has not been completed until today, but was supposed to be completed on the 30.09.2017.
    H4 and H7 on the other hand are still deadlines in the future, so they are not highlighted.
    E7 is red in font color (because the deadline is before today's date), but the cell is highlighted green, because the action is completed.

    Is it better explained?
    Cheers Dennis

  8. #8
    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,885

    Re: Color-highlighting cells with dates which pass deadlines

    OK - for each of those cells set a conditional formatting rule using the second option down in the dialog - 'Format only cells that contain'. From the drop-downs choose 'Cell value' and 'is less than' and add this to the final box: today()

    Now set the font colour to red. To check it's working, you'll want to set the cells' font colour back to black BEFORE setting up the CF rules.

    EDIT: You might want to do this using the formula option, so for example for E4:

    =E4>C3 (where C3 is the cell contining the deadline date - change to suit). You will need a similar rule for the other date cells.
    Last edited by AliGW; 10-26-2017 at 01:33 PM.

  9. #9
    Registered User
    Join Date
    09-25-2015
    Location
    Oslo
    MS-Off Ver
    2010
    Posts
    9

    Re: Color-highlighting cells with dates which pass deadlines

    that was quick!
    a strange thing though: if I put a date "29.10.2017" as condition for the check on H4 and H7, the function works (H4 changes to red, whilst H7 remains white). However, if I put today() in stead of the date, both become red.

  10. #10
    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,885

    Re: Color-highlighting cells with dates which pass deadlines

    You might be better off using the formula option, as I mentioned above.

  11. #11
    Registered User
    Join Date
    09-25-2015
    Location
    Oslo
    MS-Off Ver
    2010
    Posts
    9

    Re: Color-highlighting cells with dates which pass deadlines

    that becomes a bit more complicated, as I want the table to behave automatically and check with the current today-date, not by defining every cell individually.
    never mind, I don't think it works properly in Excel anyway.
    quite strange

  12. #12
    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,885

    Re: Color-highlighting cells with dates which pass deadlines

    Create the formula using today():

    =E4>TODAY()

    It will work properly if you've got it right.

+ 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. Conditional formatting for dates approaching deadlines
    By mommyof3Teens in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2016, 10:55 AM
  2. Conditional Formatting: Dates passed between two deadlines
    By mattcass87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-26-2014, 11:43 AM
  3. Highlighting cells same color simultaneously in 2 sheets
    By zapa98498 in forum Excel General
    Replies: 3
    Last Post: 08-20-2014, 12:23 AM
  4. Highlighting dates in Row with color
    By max3dlover in forum Excel General
    Replies: 5
    Last Post: 07-11-2014, 02:55 PM
  5. Creating deadlines/due dates with alerts in excel
    By Cesare_Borgia in forum Excel General
    Replies: 4
    Last Post: 01-18-2014, 06:03 PM
  6. Replies: 1
    Last Post: 05-19-2010, 12:41 PM
  7. highlighting cells which have dates later than...
    By Rory Carroll in forum Excel General
    Replies: 7
    Last Post: 02-03-2005, 08:06 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