A date in a cell greater than 10 days

Infine

Board Regular
Joined
Oct 16, 2019
Messages
93
Office Version
  1. 365
Platform
  1. Windows
Hello,

I try to put a condition:

I want if the date written in cell 02 is + 10 days I want to highlight it.

O2: 2021-12-28

Today it shall be colored.

If O2: 2021-01-07 I want it to be colored when we are in 2021-01-17


Anyone knows how I can do this? Google tell me: O2 < TODAY()-10 but this does not work... Especially as the value will be "2021-01-07" - 10 = 2020-12-28 which will highlight it.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Answer: =$O2>=(TODAY()+10)
 
Last edited:
Upvote 0
Hello again,

The answer is: =$O2<=(TODAY()-10)

But I want an additional formula. I want that if "P2" is not empty, I want excel to ignore the rule above. Is this possible?
 
Upvote 0
How about
Excel Formula:
=AND($P2="",$O2<=(TODAY()-10))
this will only colour the cell if P2 is empty, if it should only work if p2 is not empty change ="" to <>""
 
Upvote 0
Solution
<> worked. Thank you. I used =AND($O2<=(TODAY()-10);$O2<>"";($P2=""))=TRUE
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,593
Members
449,038
Latest member
Arbind kumar

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