Conditional Formatting with date

Mattlake

Board Regular
Joined
Apr 9, 2020
Messages
87
Office Version
  1. 2021
Platform
  1. Windows
Hi

I hope someone can help me?

I need to do conditional formatting on a cell. I have cell O4 with a date in i.e. 9/9/20, and I need it to got red if the date more than 1 year passed and blue if it is 6 months passed.

The formula i have done is: =$O$4<=TODAY()-182

but if i do another for 365 it override this one.

again it feels that i am making it more difficult than needed

Regards

Matthew
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi Matthew
Once you've written one rule, you can then go an write a second rule. If you then go to manage rules at the bottom of the conditional formatting menu you can change the order that the rules will apply (which you want to apply in the instance the both rules are satisfied).
Hope this helps
Thanks
Jon
 
Upvote 0
is there a way to have them constantly running?

i didnt know if i could 'mash' the 2 formulas together
 
Upvote 0
So the conditional formatting will be constantly running, all cells within the range will be formatted whenever the conditions are met. I think maybe I'm not sure what you mean by it?

Re putting into one rule - not without VBA - to do that you'd need a "three way" conditional formatting (over 12months, over 6 months, no formatting) which isn't possible using the standard menu options.

Thanks
Jon
 
Upvote 0
I think I may have to go visual basic on this one then

Thank you
 
Upvote 0
Is this what you want?
+Fluff 1.xlsm
A
1
209/09/2020
301/09/2021
401/03/2021
508/09/2020
Lists
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A5Expression=AND(A2<>"",A2<EDATE(TODAY(),-12))textNO
A2:A5Expression=AND(A2<>"",A2<EDATE(TODAY(),-6))textNO
 
Upvote 0

Forum statistics

Threads
1,214,390
Messages
6,119,235
Members
448,879
Latest member
VanGirl

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