Need Conditional Formatting Formula to Change the Highlight to Red if today is more than 5 years past sticker date and yellow if it is 4 years past

Nlhicks

Active Member
Joined
Jan 8, 2021
Messages
264
Office Version
  1. 365
Platform
  1. Windows
Arc Flash Tracking 2.xlsm
ABCDEFGHIJKLMN
1SubstationDate StickeredStickered ByDue DateField Comments
2Bole2026G.Giant2031Gotta love those veggies
3Circle2024N. Hicks2029
4Conrad2024N. Hicks2029
5Crossover2018Blaster2023
6Custer2027R. Red2032Grapefruits are good
7Dawson County2024N. Hicks2029Updated model, there were lots of errors on this model.
8Fairview West2024N. Hicks2029
MMO
Cell Formulas
RangeFormula
D2:D8D2=IF(ISBLANK(B2),"",B2+5)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D30Cell Value>TODAY()textNO
D2:D30Cell Valuebetween B2 and TODAY()+1460textNO
 
in column D - then its 2023
so its red as its less than today() year

=AND($D2<>"",$D2<YEAR(TODAY()))

Book1
ABCDE
1SubstationDate StickeredStickered ByDue Date
2Bole2026G.Giant2031
3Circle2024N. Hicks2029
4Conrad2024N. Hicks2029
5Crossover2018Blaster2023
6Custer2027R. Red2032
7Dawson County2024N. Hicks2029
Sheet2
Cell Formulas
RangeFormula
D2:D7D2=IF(ISBLANK(B2),"",B2+5)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D24Expression=AND($D2<>"",$D2<YEAR(TODAY()))textNO


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
D2:D1000 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=AND($D2<>"",$D2<YEAR(TODAY()))

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Solution

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,221,525
Messages
6,160,326
Members
451,637
Latest member
hvp2262

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