Link to home
Start Free TrialLog in
Avatar of gisvpn
gisvpnFlag for United States of America

asked on

Conditional Formatting - Date Based

Hi,

I am looking to set up a conditional format which sets the background of cells in column H to yellow if the date is within the next 5 days (or today) and red if the date has past?

I cannot work out the formula to use - would it be something similar to H:H<=[Today]-5 for amber for example?
Avatar of Flora Edwards
Flora Edwards
Flag of Sweden image

does it have to be work day or any day?
Avatar of Roy Cox
Try this for the yellow cells

=OR(C1=TODAY(),C1>TODAY()-5)
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gisvpn

ASKER

Change =AND(H2<>"",TODAY()>=H2+5) to =AND(H2<>"",TODAY()>=H2-5) - and worked perfect; thanks!
You're welcome. Glad it worked after you tweaked it. :)