Conditional Formating - Time difference
alternatives
=AND(COUNT(A1:B1)=2,MOD(B1-A1,1)*248)
=AND(COUNT(A1:B1)=2,MOD(B1-A1,1)*24<=8)
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Toppers" wrote in message
...
Highlight column A:
CF 1: Formula is: =AND(A1<"",B1<"",(B1-A1+(B1<A1))*248) and set to
green
CF2: Formula is: ==AND(A1<"",B1<"",(B1-A1+(B1<A1))*24<=8) and set to red
Repeat for column B
HTH
"Roman" wrote:
I have 2 columns, Column A for 'Arrival Time' and Column B for
'Departure
Time' .
If the 'departure Time' minus 'Arrival Time' is greater than 8 hrs,
background color of both the columns A and B should be changed to green,
otherwise color should be red. How can I achieve this using conditional
formatting?
|