Conditional formatting with dates

aivoryuk

Board Regular
Joined
Nov 18, 2009
Messages
130
Hi I have had a search for this but can't seem to find anything that works for me.

I am using 2003 and need 3 conditional formats

If the date is greater than 21 days before todays date then it turns the cell red.
If the date is between 14 and 21 days before todays date then it goes yellow

If the date/cell is blank or less than 14 days before todays date it remains white.

I have tried a couple of ways but can't seem to get this to work.

Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try

First Rule (Red fill)

=TODAY()-A1>21

Second Rule (Yellow fill)

=TODAY()-A1>14

In both formula change A1 to the first cell in your range of dates.
 
Upvote 0
Just to be clear, by "greater than 21 days before todays date" I assume you mean, if the date is 21 days or more, before today's date. And not, if the date is later than the date 21 days before today's date.

For red...
Format
Conditional Formating
Cell Value Is
Less than
=today()-21
and format as red.

Add a second condition for
=today()-14
for yellow.
 
Upvote 0
hi all that worked.

further to this rather than just highlighting the cell I now need for it to highlight the whole row.
My date cells are in column O
what is the best way to ahieve this?
 
Upvote 0
Make the column absolute in the formula

=TODAY()-$O1>21

and apply to the desired range.
 
Upvote 0

Forum statistics

Threads
1,224,575
Messages
6,179,637
Members
452,934
Latest member
Jdsonne31

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