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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
<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,215,350
Messages
6,124,439
Members
449,160
Latest member
nikijon

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