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

cleaverr
Posts
3
Registration date
Monday December 12, 2016
Last seen
December 13, 2016
- Dec 12, 2016 at 03:00 PM - 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 

7 replies

ac3mark
Posts
10832
Registration date
Monday June 3, 2013
Status
Moderator
Last seen
November 13, 2018
- Dec 12, 2016 at 05:24 PM
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
- Dec 13, 2016 at 06:22 AM
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
- Dec 13, 2016 at 06:50 AM
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.
TrowaD
Posts
2445
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
November 12, 2018
- Dec 19, 2016 at 11:59 AM
0
Thank you
Hi Rob,

May this pic guide you to your solution:


Best regards,
Trowa
ac3mark
Posts
10832
Registration date
Monday June 3, 2013
Status
Moderator
Last seen
November 13, 2018
- Dec 19, 2016 at 04:40 PM
@TrowaD - Always quality from you! Thanks!
TrowaD
Posts
2445
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
November 12, 2018
- Dec 20, 2016 at 10:46 AM
Thanks, appreciate it!
Sorry for the delay in replying - I have been away.
Many thanks for your help - just what I was after.