Formating XL 02 sp2 with colors and dates

K

KC

Hello
I'm trying to format a cells with dates and colors. I would like the color to change to green if it is either 2 days after or = to the reference cell. Black for the previous day or greater than 4 days prior from the reference cell. Example: Ref = 4/25 green cell. 4/24 black, 4/23 green, 4/22 green piror & furture to dates the cell color format remain the same. Can this be done? Thank you.
 
L

Lance

You can use Format|Conditional Format | change the
dropdown to "Formula is"

Condition 1
=B1-$A$1 = -1
"set pattern to black"

Condition 2
=B1-$A$1 < -1
"set pattern to green"

Where a1 is your reference cell.

Lance
-----Original Message-----
Hello,
I'm trying to format a cells with dates and colors. I
would like the color to change to green if it is either 2
days after or = to the reference cell. Black for the
previous day or greater than 4 days prior from the
reference cell. Example: Ref = 4/25 green cell. 4/24
black, 4/23 green, 4/22 green piror & furture to dates
the cell color format remain the same. Can this be done?
Thank you.
 

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