Conditional Formatting dates

Ralie1

New Member
Joined
Jul 3, 2018
Messages
2
Hi,

I'm wanting to make some dates within a spreadsheet change depending if the date is older than six months (turn red), is two weeks before the six month deadline (turn amber) or is within the six months (turn green).

I can get the dates to turn red and green but it is the formula for the dates which are coming up to six months which I need help with please?

The dates entered in the spreadsheet are in the past so it will just be if todays date is 6 months past that date, but two weeks before that.

Hope this makes sense!

Thank you
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
The way I would do it would be to make the default cell color green (i.e. the cell color not in a conditional format)
Then I would create two conditional formats based on formulas.

The first (in order) would be formatted to red and would have the formula ={yourcell}<edate(now(),-6)<edate(now(),-6)
< EDATE(NOW(),-6)
The second (in order) would be formatted to amber and would have the formula ={yourcell}<=EDATE(NOW(),-6)+14</edate(now(),-6)<edate(now(),-6)
 
Last edited:
Upvote 0
If I understood your conditions correctly, you will need to enter them as follows and in this order (substitute A3 for wherever the first value is):

1) the date in your cell is older than 6 months:
Code:
=(TODAY()-A3)>180
2) the date in your cell is two weeks prior to six months:
Code:
=AND((TODAY()-A3)>=166,(TODAY()-A3)<180)
3) the date in your cell is within 6 months:
Code:
=(TODAY()-A3)<180
 
Upvote 0

Forum statistics

Threads
1,223,577
Messages
6,173,163
Members
452,503
Latest member
AM74

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