Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Conditional Formating - Time difference
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? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Conditional Formating - Time difference
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? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Time difference calculations, daylight savings time, Excel | Excel Discussion (Misc queries) | |||
Help with Conditional Formating Time | Excel Worksheet Functions | |||
Install dates formating using conditional formating? | Excel Discussion (Misc queries) | |||
Negative time should be allowed in Excel, eg time difference | Excel Discussion (Misc queries) | |||
Time / Formula to look at time difference | Excel Worksheet Functions |