Conditional Formatting range of date cells based on another cell [Solved/Closed]

Posts
3
Registration date
Monday December 12, 2016
Last seen
December 13, 2016
- - Latest reply:  cleaverr - Jan 5, 2017 at 06:18 AM
Hi There,

There is lots of stuff to do with CF when using today's date but not a for specific date entered in a cell so I was hoping someone might be able to help.

I am trying to CF a row of cells (D2:K2). These all have different dates in them. The formatting is to be based on a date in another cell (B2) - so green if before this date and red if after this date. I will then be doing the same for rows below this (D3:K3 based on B3 etc.). The dates in Column B are all different as well.

Your guidance would be most welcome!

rgds

Rob
See more 

2 replies

Posts
11185
Registration date
Monday June 3, 2013
Status
Contributor
Last seen
January 22, 2019
1911
0
Thank you
Just compare the value in the two cells, and format it based on the condition. What if the cell contain "hello"? Would you be able to turn the cell red? Use the same type of formula to compare the values! Post back if you still have hardships!
cleaverr
Posts
3
Registration date
Monday December 12, 2016
Last seen
December 13, 2016
-
Sorry - please could you provide me with some more details (exact instructions) if possible.
many thanks
cleaverr
Posts
3
Registration date
Monday December 12, 2016
Last seen
December 13, 2016
-
So I am currently typing:

"IF(DATEVALUE,$D$2:$O$2<DATEVALUE,B2)" and formatting this for green.
and the same formula with > to be red.

but it is not working.
Posts
2441
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 18, 2018
400
0
Thank you
Hi Rob,

May this pic guide you to your solution:


Best regards,
Trowa
ac3mark
Posts
11185
Registration date
Monday June 3, 2013
Status
Contributor
Last seen
January 22, 2019
1911 -
@TrowaD - Always quality from you! Thanks!
TrowaD
Posts
2441
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 18, 2018
400 -
Thanks, appreciate it!
Sorry for the delay in replying - I have been away.
Many thanks for your help - just what I was after.