Conditional formating dates

Tigernutz

New Member
Joined
Jul 8, 2011
Messages
4
Hi there

I'm monitoring training, and would like to use Excel to identify when certain training refresher courses are due (every year, every 2 years etc). I'm trying to find a way to have a given cell change colour (green background) when it is 3 months away, then change to a different colour (orange background) when it is 1 month away, and finally change to yet another colour (red background) when the date in the cell is passed. The cell formula I am using is as follows, to calculate the date the training is due, where cell B6 is the date the training was last completed and cell B7 is the date the training is due:

=DATE(YEAR(B6)+2,MONTH(B6),DAY(B6))

with the following conditional formats:

Formula is =(B7-TODAY())<90
green background
Formula is =(B7-TODAY())<30
orange background
Formula is =(B7-TODAY())>1
red background

What I am finding is that only the green seems to be pulling through - any advice please?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I think that you need to reverse the order in which you enter those otherwise the first one will take precedence.
 
Upvote 0
Still having issues, even when I reversed them, so I've kept them reversed (as suggested) and changed the >1 to <7, and it seems to be working :)

Cheers :cool:
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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