Conditional Formatting dates in the past

m27mitchell

New Member
Joined
Mar 29, 2016
Messages
29
Is there a way to create conditional formatting for past dates? I'm trying to make the cell green if it's a date in the past 15 days (to today), yellow if it's 15 - 30 days old, and red if it's 31 or more days old.

Any help is greatly appreciated.

Than you
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
<today()-15,$j1>Hi m27,

Highlight the column/Conditional Format/New rule/Use a formula to determine which cells to format;


Green 15 days old;

Code:
=$J1>TODAY()-15

Yellow 15-30 days old;

Code:
=AND($J1"less than"TODAY()-15,$J1>TODAY()-30)<today()-15,$j1>

Red 31+days
</today()-15,$j1><today()-15,$j1>
Code:
=($J1"less than"TODAY()-31)

Html code doesn't like the less than character in the forum.</today()-15,$j1></today()-15,$j1>
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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