Conditional Highlighting Dates

reighzaigne

New Member
Joined
Oct 19, 2015
Messages
24
Hi all,

I'm having trouble trying to come up with a formula for conditional highlighting.

3 Mar 21 (Date today)
Expiration Date
1 Jan 21​
17 Sep 22​
1 Jan 21​
5 Apr 21​
18 Mar 21​
1 Jan 21​
19 Sep 21​
1 Jan 22​

Sorry for the bad copy-pasting.

I want to have 3 rules.

1st rule: (Yellow)
To highlight all dates that fall within the same year.

2nd rule: (Green)
To highlight all dates that are within 60 days from date.

3rd rule: (Red)
To highlight all overdue dates.


I hope someone can help me.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,788
Office Version
  1. 365
Platform
  1. Windows
In that case can you post a sample of your data showing the rules you have set.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,015
Messages
5,639,558
Members
417,098
Latest member
steverob

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