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

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:
=TODAY()-RIGHT($W2,9)>5

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

Thanks!
Andrea
AndreamaryAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Glenn RayExcel VBA DeveloperCommented:
Hi, you're on the right track; just need to change your conditional formula to this:
=TODAY()-DATEVALUE(MID($W2,4,10))>5

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

Regards,
-Glenn
0
barry houdiniCommented:
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.

=NETWORKDAYS(REPLACE($W2,1,3,""),TODAY())>5

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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AndreamaryAuthor Commented:
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.
0
AndreamaryAuthor Commented:
Thanks very much, Barry! I did experiment and using > 6 worked perfectly...

Cheers,
Andrea
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.