Highlight row based on first date found within cell

maximillianrg

Board Regular
Joined
Aug 7, 2014
Messages
75
Office Version
  1. 2016
Platform
  1. Windows
Hello Excel Masters - Thank you for your help in advance!

I extract data from a power bi dashboard into excel and column L contains text that contains at minimum two dates and sometimes more. I want to apply conditional formatting to Column L that determines if the first date found in the cell is in the past and if "TRUE" it highlights the row RED. The exports spans columns A-0 and all dates are in the below format.

Using the below examples:
  • Row 2 would not be highlighted because the first date in cell L2 is in the future
  • Row 3 would be highlighted because the first date in cell L3 is in the past
  • If the first date found = todays date the row should not be highlighted because the first date is not in the past
Today = 11-DEC-2023

Example L2:
Deployment schedule ETA: 22-JAN-2023
Deployment Status (Partial/Complete): Partial
Remark: Deployment was scheduled for 11-NOV-2023 but was pushed due to late delivery which is scheduled for 12-DEC-2023

Example L3:
Deployment schedule ETA: 15-OCT-2024
Deployment Status (Partial/Complete): Partial
Remark: Deployment on track for 15-OCT-2024
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hello iggy, thank you for your reply, but your response omits the most challenging part of the formula I'm looking for which is extracting the first date from a cell that contains multiple dates
 
Upvote 0
maybe use a helper column and put this formula to strip the date out
Excel Formula:
=MID(L2, 26, 13)
 
Upvote 0
The following formula extracts the first date from cell L2 and returns TRUE if the date is in the future and FALSE if the date is in the past. Now I just need help modifying this to work as a conditional formatting formula to highlight the entire row.

=(DATEVALUE(MID(J2,SEARCH("??-???-????",J2),11))>TODAY())
 
Upvote 0
Upvote 0
If the results of the formula you listed are already evaluating TRUE and FALSE (check your logic, though, as Peter_SSs said), you just need to set your conditional formatting for those conditions. You initially said you wanted to colour the cell, but then the row. If you just want the cell, change the "applies to" accordingly.

1702331965327.png
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top