Conditional formatting of Cells based on date less a countdown.

KyleG

Well-known Member
Joined
Jun 12, 2004
Messages
629
Office Version
  1. 365
Platform
  1. Windows
Hi,

In the below image i have coloured the cells based on the current date.
What i want is for the sheet to colour code as appropriate when opened.
So Green if the cell is marked DONE
Red if today is >than the COO Date less the T-minus date (first three cells would go red if today is greater than the 5/8/2024, A8 starts going red if today is greater than 08/08/2024. eg. needs action
orange if today = the COO Date less the T-minus date is today.
No colouration if the above are not applicable

Happy if i have to populate the A column in full eg. multiple T-14s in A5, A6, and A7


1723163692280.png
 
Last edited by a moderator:
So perhaps you could give a small set of sample data that had some "Time minus" cells and some "Time plus" cells and show/explain the expected results?

I have marked in yellow what should actually be red based on how the rest of the sheet acts. The A column represents the date in relation to the COO date in Row 4. So E37 the yellow should have gone red from the 19/08/2024. My original brief did not include T+ values but otherwise works perfectly.
1725184135196.png


Current Rules are:

=SEARCH("DONE",E6) GREEN
=LET(L,LOOKUP("ZZ",$A$6:$A6),AND(TODAY()>E$4+MID(L,FIND("-",L),99))) RED
=LET(L,LOOKUP("ZZ",$A$6:$A6),AND(TODAY()=E$4+MID(L,FIND("-",L),99))) ORANGE
 
Last edited:
Upvote 0

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".
If the prefix in column A is only ever a single character then change the red formula to
Excel Formula:
=AND(TODAY()>E$4+MID(LOOKUP("ZZ",$A$6:$A6),2,99))

If the col A prefix could be more than one character then for red try
Excel Formula:
=LET(L,LOOKUP("ZZ",$A$6:$A6),AND(TODAY()>E$4+MID(L,IFERROR(FIND("-",L),FIND("+",L)),99)))

If either of the above suits then I guess you will need a similar change for the orange formula.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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