Conditional Formatting Formula for Dates

cTatch

New Member
Hey Y'all,

I'm trying to figure out a conditional formatting formula for cells O17-O30 that highlights date cells that are either in the past, today, or up to 3 months in the future, all relative to today's date.

Does anyone know a good formula for that?

Thank you!
Chelsea

Excel Facts

Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Saurabhj

Active Member
Hi,

Use below:

Excel Formula:
``=O17<=EDATE(TODAY(),3)``

cTatch

New Member
Hi,

Use below:

Excel Formula:
``=O17<=EDATE(TODAY(),3)``
Hi, not sure why, but I could get that to work - when I used that formula it didn't highlight the correct cells. Any ideas? I've posted the date cells I'm using here. Thank you.

 1/31/2021​ 1/31/2021​ 4/30/2019​ 9/30/2021​ 9/30/2021​ 8/31/2021​ 12/31/2020​

Fluff

MrExcel MVP, Moderator
+Fluff v2.xlsm
O
1731/01/2021
18
1931/01/2021
20
2130/04/2019
22
2330/09/2021
24
2530/09/2021
26
2731/08/2021
28
2931/12/2020
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O17:O29Expression=AND(O17<>"", O17<=EDATE(TODAY(),3))textNO

cTatch

New Member
+Fluff v2.xlsm
O
1731/01/2021
18
1931/01/2021
20
2130/04/2019
22
2330/09/2021
24
2530/09/2021
26
2731/08/2021
28
2931/12/2020
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O17:O29Expression=AND(O17<>"", O17<=EDATE(TODAY(),3))textNO
That worked perfectly! Thanks so much, Fluff.

Fluff

MrExcel MVP, Moderator
Glad we could help & thanks for the feedback.

Replies
2
Views
59
Replies
3
Views
59
Replies
6
Views
78
Replies
1
Views
201
Replies
1
Views
125

1,126,911
Messages
5,621,595
Members
415,847
Latest member
AlpinoHirsch

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.

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

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