Conditional formatting to highlight multiple date ranges in column calculating from today

JacqueM

New Member
Joined
Jun 13, 2016
Messages
2
I have a column in excel of multiple dates and some blanks, I need to highlight the cells different colors based on their date range calculating from Today. Example, cells with no date a certain color, cells older than 1 day but less than 6 months a certain color, cells older than 6 months but less than 11 months a certain color, cells older than 11 months a certain color.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Welcome to the Board!

Highlight your whole column that you want to apply this to, then add the following Conditional Formatting Rules, as they pertain to the first cell in your highlighted range (Excel will automatically adjust for all the other rows). So if the first cell in your range is A1, here is what those formulas will look like:

Code:
Rule 1: =$A1=""
Rule 2: =AND($A1 < TODAY()-1,$A1 > EDATE(TODAY(),-6))
Rule 3: =AND($A1 < EDATE(TODAY(),-6),$A1 > EDATE(TODAY(),-11))
Rule 4: =$A1 < EDATE(TODAY(),-11)

A few notes:
- Don't forget to choose the appropriate color formatting option for each rule.
- When you enter the Conditional Formatting Rules in, the newest rule added gets put at the top. So you either want to enter these rules in reverse order, or re-order them after you have entered them all (you can do that from the "Manage Rules" section).
- Note that you may need to "edit" the rules slightly, as you did not mention what should happen if it EXACTLY 6 months or 11 months. You will probably just need to change the appropriate > to >=, etc.
 
Upvote 0
Thank You!!


Welcome to the Board!

Highlight your whole column that you want to apply this to, then add the following Conditional Formatting Rules, as they pertain to the first cell in your highlighted range (Excel will automatically adjust for all the other rows). So if the first cell in your range is A1, here is what those formulas will look like:

Code:
Rule 1: =$A1=""
Rule 2: =AND($A1 < TODAY()-1,$A1 > EDATE(TODAY(),-6))
Rule 3: =AND($A1 < EDATE(TODAY(),-6),$A1 > EDATE(TODAY(),-11))
Rule 4: =$A1 < EDATE(TODAY(),-11)

A few notes:
- Don't forget to choose the appropriate color formatting option for each rule.
- When you enter the Conditional Formatting Rules in, the newest rule added gets put at the top. So you either want to enter these rules in reverse order, or re-order them after you have entered them all (you can do that from the "Manage Rules" section).
- Note that you may need to "edit" the rules slightly, as you did not mention what should happen if it EXACTLY 6 months or 11 months. You will probably just need to change the appropriate > to >=, etc.
 
Upvote 0
You are most welcome!:)
 
Upvote 0

Forum statistics

Threads
1,216,042
Messages
6,128,467
Members
449,455
Latest member
jesski

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