Conditional formatting--different formatting depending on cell con

T

Tammy S.

I would like to format a date cell when the date will expire in 15 days. If
there is no date, I don't want any formatting. How can I set the formatting
to meet both of these conditions?
 
S

Sheeloo

Choose FORMULA IS and enter the formula
=AND(A1<>"",(A1-TODAY())<15)

It will higlight cell A1 if it contains a date which falls within the next
15 days (including dates in the past)

If you want to highlight dates only in the next 15 days use
=AND(A1<>"",(A1-TODAY())<15,(A1-TODAY())>0)
 
T

Tammy S.

Sheeloo,

Perfect. Worked better than what was already there and the temporary
work-around I came up with. Thank you very much.
 
S

Sheeloo

You are most welcome.

Thanks for your feedback.

Tammy S. said:
Sheeloo,

Perfect. Worked better than what was already there and the temporary
work-around I came up with. Thank you very much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top