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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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,606
Messages
6,120,497
Members
448,967
Latest member
visheshkotha

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