Cond. format. to change color based on dates

Closed
T - Aug 5, 2009 at 12:51 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Aug 5, 2009 at 10:06 PM
Hello,
I need excel help (formulas or conditional formatting). I am trying to change the highlight color of a cell based on the value (date) in the cell compared to the current date. For example if todays date is 8/5/09 and the date in a cell is prior then it would be red and if the date in the cell is in the future it would be green.
any help would be greatly appreciated.
Related:

1 response

venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 811
Aug 5, 2009 at 10:06 PM
you have to use conditional formatting.

In an empty cell for e.g. D1 type this formula
=today()

now select the first cell where dates are parked
click format-conditional formatting
under condition 1
the first window
"cell value is"
second right window
click the arrow and choose
"greater than or equal to"
in the third right window type
$D$1
now click "foramt" in he next row
choose patter
choose green colour
click ok only once
you now automatically go back to conditional formatting window
now click "add" at the bottom
first window as before is
"cell valuae is"
in the second window choose less then
in the third window as before type
$D$1
click format -patter
choose red colour
click ok
again click ok

now copy this cell
highlight cells below
click
edit-pastespecial-format-ok

now see whetehr you get what you ant
0