Past Date Conditional Formatting

Atkey

New Member
Joined
Mar 13, 2024
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am attempting to conditional format a number of past dates. How can I get dates:

  • From the date in the cell red for 6 months
  • From the date in the cell amber from the 6 month point to 12 months
  • Un formatted if more than a year ago.
Cheers!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
For red:
=AND([target cell]<TODAY(), [target cell]>= TODAY()-182)

For amber:
=AND([target cell]<TODAY()-182,[target cell]>=TODAY()-365)

If I understood your question, this should do what you need it to. If you want the red to highlight today's date as well, change the first < to <=.
 
Upvote 0
A2= Given date
For red
Excel Formula:
=AND(A2<TODAY(),A2>=EDATE(TODAY(),-6))

For amber
Excel Formula:
=AND(A2<EDATE(TODAY(),-6),A2>=EDATE(TODAY(),-12))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,871
Messages
6,175,095
Members
452,612
Latest member
MESTeacher

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