I am trying to make conditional formatting for Dates in Excel. The cells should change the color depeding on when the Date is due. If it is due in less than 30 days it should be red. If it is due in less than 60 days it should be yellow. If it is due in less than 90 days it should be green.
If have following Formula =DATEDIF(TODAY();E:E;"d")<30
as a conditional formatting rule for the start.
The strange part is that it works if I have it in a cell. It returns the value true for the values in "E" that are due in less than 30 days. However I cannot apply this rule in conditional formatting. It does not give me an error. It simply does nothing...
Can this be solved with conditional formatting or should I write a VBA script?
If
statement to determine it, I don't see why you'd needDatedIf
. – BruceWayneE:E
, select just one cell in the same row to apply it to and make it refer to the same specific row in that column,E1
for example. As long as you get rid of any$
s that Excel automatically applies, then it will still be a relative reference and you can extend the range it applies to in the "Manage Rules" menu after you have gotten it working for one cell. – CactusCake=TODAY() - E2<30
then use the formatting desired. In the applies to fiels put theE:E
– Scott Craner