Conditional Formatting based on the Date

hammhaylee

New Member
Joined
Jun 1, 2022
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hello!!

I would like my column of dates to have 3 colors. Let's say that the date expires after 12 months.

Based on the current date 6/1/2022 (or current year)

Ex. The date entered is 4/13/2022 (this would be green)
Ex. The date entered is 6/15/2021 (this would become orange)
Ex. The date entered is 7/18/2020 (this would be red)


Green = Less than 12 months old
Orange = The date is about to be 12 months old. Warns me when the date is 11 months old/expires within 30 days.
Red = Older than 12 months

This is what I have so far and its not really working as I would like it to!
 

Attachments

  • Excel Conditional Dates.jpg
    Excel Conditional Dates.jpg
    148.1 KB · Views: 59

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to the Board!

Here are your Conditional Formatting formulas:

Red: =EDATE($F3,12)<TODAY()
Orange: =AND(EDATE($F3,12)-TODAY()>=0,EDATE($F3,12)-TODAY()<=30)
Green: =EDATE($F3,12)-TODAY()>30
 
Upvote 0
Solution
Welcome to the Board!

Here are your Conditional Formatting formulas:

Red: =EDATE($F3,12)<TODAY()
Orange: =AND(EDATE($F3,12)-TODAY()>=0,EDATE($F3,12)-TODAY()<=30)
Green: =EDATE($F3,12)-TODAY()>30
THANK YOU THANK YOU!
 
Upvote 0
You are welcome!

Glad I was able to help.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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