Conditional formatting based on comparing today's date to date string in cell

Posted on 2014-08-11
Last Modified: 2014-08-13
Column W is formatted as shown below (initials & date):
AC–8 Aug 14
MN-14 Jul 14
MC-2 Aug 14

I would like to apply conditional formatting to the cells in Column W based on the following criteria:
Cell background = red if today's date is > 5 working days than date string in Column W cell

Below is my attempt, but it doesn't factor in working days, and more to the point, doesn't work:

If you need any further information, just let me know...

Question by:Andreamary
    LVL 27

    Expert Comment

    by:Glenn Ray
    Hi, you're on the right track; just need to change your conditional formula to this:

    It assumes that there are two (2) initials, a dash (or other single separating character), then the date.

    LVL 50

    Accepted Solution

    You can use REPLACE to remove the first 3 characters.....and then use NETWORKDAYS to count working days between that date and TODAY, i.e.


    Note that NETWORKDAYS counts both start date and end date so you may need to experiment to see whether you may need >6 rather than >5 depending on your exact requirements

    regards, barry

    Author Comment

    Thanks to you both for the quick response! The first solution seemed to include all days of the week. As I was looking for a formula based on working days, the second solution, which included that criteria, did the trick.

    Author Closing Comment

    Thanks very much, Barry! I did experiment and using > 6 worked perfectly...


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
    This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
    This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
    This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now