Conditional Formatting Formula for Dates

cTatch

New Member
Joined
Jan 21, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
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
 

Some videos you may like

Excel Facts

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

Saurabhj

Active Member
Joined
Jun 6, 2020
Messages
413
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi,

Use below:

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

cTatch

New Member
Joined
Jan 21, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
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
Joined
Jun 12, 2014
Messages
55,229
Office Version
  1. 365
Platform
  1. Windows
How about
+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
Joined
Jan 21, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
How about
+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
Joined
Jun 12, 2014
Messages
55,229
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
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.
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
Top