Conditional Format help

Dclark015

New Member
Joined
Mar 6, 2023
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Good Morning All,

I have a sheet where I need to track 10 years after a date to show that it expires. Currently, I have 2 formulas (listed Below) however once it hits the 10-year mark it turns red and then the next day it goes back to the other format and turns back to orange 1 day after my end date. Again I'm sure its something simple that I am missing any help would be appreciated.

=AND(G2<>"",EDATE(G2,120)=TODAY()) This is first on the list and checked for "stop if True"

=AND(G2<>"",EDATE(G2,108)<=TODAY())


Thank you in advance,
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Thanks again, I did miss that formula. This one works correctly. Thank you all again

Special thanks to Joe4- for not loosing your head as I was trying to get this working.
You are welcome.
Glad we got this working the way you need.
 
Upvote 1
I think you may need to change the "=" in your first rule to ">=" or "<=". Otherwise it will only work for that one day.
You may also need to change the order of your rules.
 
Upvote 0
Thanks for the replies- I've tried both suggestions and neither seemed to work. When adding the <= or >= it changes the fill color and does not change depending on what rule is on top. The same thing happens with Gajitcs formula.

My file has a section where gear expires after 10 years. If the gear was manufactured on 3/10/2013 then I want to fill the date as red and stay red for any days after that 10-year date. I also would like the date to turn Orange at the 9-year mark and then it would swap to red at 10 years. However any date before the 9-year mark I want it to remain non-filled.

An example is

Gear manufacture date 3/10/2023 Stays non-filled (White) until 3/10/2032 where it fills (orange) and then stays (orange) until 3/10/2033 where it fills (red) and stays (red) until deleted.

I hope that helps.
 
Upvote 0
Try this:

1678465765926.png


Those two formulas are:
Excel Formula:
=AND(G2<>"",G2>=EDATE(TODAY(),120))
and
Excel Formula:
=AND(G2<>"",G2>=EDATE(TODAY(),108))
 
Upvote 0
Still not working, I did have to add a - to the rule for any color to change. Is there any chance both being same typre of time frame is whats causing it to not work?

1678468676533.png
 
Upvote 0
You seem to be flip/flopping on your date rules.
Are you trying to work with dates 10 years in the past or dates 10 years in the future?

You gave us an example with future 2033 dates:
Gear manufacture date 3/10/2023 Stays non-filled (White) until 3/10/2032 where it fills (orange) and then stays (orange) until 3/10/2033 where it fills (red) and stays (red) until deleted.

But in your last post you are showing old 2013 dates.

So which way are you really trying to go here???
 
Upvote 0
You seem to be flip/flopping on your date rules.
Are you trying to work with dates 10 years in the past or dates 10 years in the future?

You gave us an example with future 2033 dates:


But in your last post you are showing old 2013 dates.

So which way are you really trying to go here???


Sorry for the confusion. If what date frame they are matters for the formulas, then that's my misunderstanding. I am looking for a 10-period where gear goes bad. While inventorying the gear on hand some may have a manufacturing date from 2013 until 2023. So the formula would need to be in the past and the future I suppose because new dates would also be added when new gear is purchased.
 
Upvote 0
Drop my fomulas into the worksheet and verify that you get the true and false values where you expect them.
 
Upvote 0

Forum statistics

Threads
1,215,221
Messages
6,123,699
Members
449,117
Latest member
Aaagu

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