paulkinzelman
New Member
- Joined
- Aug 20, 2012
- Messages
- 13
I'm trying to conditionally format a cell based on the comparison of
two times. I've gotten it to work when both are hard numbers, like comparing 11:00 and 12:00. However, when one of them is the result of a formula, the conditional formatting doesn't seem to work. What am I doing wrong?
I want to color B15 based on the comparison between B15 and L14.
The conditional format formula I have is:
"Formula Is" | "=B15<l14" |="" format="" pattern="" <red="">[less-than]L14" | Format | Pattern | Red
( [less-than] is instead of less-than angle bracket)
The cell L14 has the formula:
=IF(NOT(ISBLANK(E14)),IF(HOUR(E14>14),(E14-TIME(14,0,0)),(E14+TIME(10,0,0))),"")
Basically if E14 is not blank, then L14 is 14 hrs plus E14, plus the wrap over midnight is handled.
In addition, the conditional format I want has the issue of the wrap-over-midnight too, suggestions on how to handle that, so that if L14 is 00:30 and B15 is 23:30, the cell turns red?
TIA!</l14">
two times. I've gotten it to work when both are hard numbers, like comparing 11:00 and 12:00. However, when one of them is the result of a formula, the conditional formatting doesn't seem to work. What am I doing wrong?
I want to color B15 based on the comparison between B15 and L14.
The conditional format formula I have is:
"Formula Is" | "=B15<l14" |="" format="" pattern="" <red="">[less-than]L14" | Format | Pattern | Red
( [less-than] is instead of less-than angle bracket)
The cell L14 has the formula:
=IF(NOT(ISBLANK(E14)),IF(HOUR(E14>14),(E14-TIME(14,0,0)),(E14+TIME(10,0,0))),"")
Basically if E14 is not blank, then L14 is 14 hrs plus E14, plus the wrap over midnight is handled.
In addition, the conditional format I want has the issue of the wrap-over-midnight too, suggestions on how to handle that, so that if L14 is 00:30 and B15 is 23:30, the cell turns red?
TIA!</l14">
Last edited: