Conditional Formatting for expired dates

bill351

Board Regular
Joined
Jan 19, 2009
Messages
83
I have a range of dates of when documents are sent in to the managers column H and what needs to be achieved is any date that is past 7days needs to be highlighted red so as to prompt an action. Secondly in column I, I would like to place R (for returned) but could be anything so that the corresponding cell in H is shaded green. Problem I'm having is all the blank cells are red (not ideal) and I cant get the green shading happening, getting frustrated that I cant figure out something this simple.
I have been given "IN cell H3 type =TODAY(), this will put today's date in that cell
In Cell H4, conditionally format with the following formula:=IF(H4<$H$3-7,1,0)" and " In Cell H4, conditionally format with the following formula:=IF(H4=$I$3,1,0) for the green shading" but this doesnt work correctly??

Thanks Guys
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
No need for additional cells.
Suppose dates are in H4 downwards.
Formula for red highlighting:
Code:
=H4 < TODAY()-7
Formula for green shading:
Code:
=I4<>""
Make sure this condition is on top and check "Stop if true".

Remark: in conditional formatting formulas you don't need the IFs with 1 if true and 0 if false: just the condition part suffices.
 
Upvote 0
Thanks MarcelBeug

That works great the only thing I added was no format if blank and it all works just the way I want
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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