Conditional Highlighting Dates

reighzaigne

New Member
Joined
Oct 19, 2015
Messages
28
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.
How about
+Fluff 1.xlsm
AB
103/03/2021
2Expiration Date
301/01/2021
417/09/2022
501/01/2021
605/04/2021
718/03/2021
801/01/2021
919/09/2021
1001/01/2022
Main
Cell Formulas
RangeFormula
A1A1=TODAY()
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B10Expression=AND(B3<$A$1+60,B3>$A$1)textNO
B3:B10Expression=B3<$A$1textNO
B3:B10Expression=YEAR(B3)=YEAR($A$1)textNO
 
Upvote 0
How about
+Fluff 1.xlsm
AB
103/03/2021
2Expiration Date
301/01/2021
417/09/2022
501/01/2021
605/04/2021
718/03/2021
801/01/2021
919/09/2021
1001/01/2022
Main
Cell Formulas
RangeFormula
A1A1=TODAY()
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B10Expression=AND(B3<$A$1+60,B3>$A$1)textNO
B3:B10Expression=B3<$A$1textNO
B3:B10Expression=YEAR(B3)=YEAR($A$1)textNO
this looks good. let me try this.
 
Upvote 0
How about
+Fluff 1.xlsm
AB
103/03/2021
2Expiration Date
301/01/2021
417/09/2022
501/01/2021
605/04/2021
718/03/2021
801/01/2021
919/09/2021
1001/01/2022
Main
Cell Formulas
RangeFormula
A1A1=TODAY()
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B10Expression=AND(B3<$A$1+60,B3>$A$1)textNO
B3:B10Expression=B3<$A$1textNO
B3:B10Expression=YEAR(B3)=YEAR($A$1)textNO
how? it didn't work for me. :(
 
Upvote 0
In what way didn't it work?
 
Upvote 0
Do you have the rules in the same order as my post?
Also the B3 needs to reflect the first cell in the applies to range.
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,927
Members
448,533
Latest member
thietbibeboiwasaco

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