Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm trying to write a logic formula where I am comparing a variable time to a
fixed time. If the variable time is greater than the fixed I assign a value "1", if it is less than I assign the value "0". The problem I'm facing is the fixed time is 12:00 am, so the variable is always considered greater. The formula I'm trying to use is: =IF(A1A2,1,0) where A1 is the variable time. How can I correct this so that 11:50 pm is LESS than 12:00am and 1:00am is GREATER than 12:00am? -- Thanks! RKEMPER |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
And where is the split? 11:49? 12:00PM?
Why not take 12:00PM as fixed time? You can also include a date; that makes it a lot more logical. Now you're trying Excel to tell that 1 2. Some time, someway, Excel will strike back. -- Kind regards, Niek Otten "rkemper" wrote in message ... I'm trying to write a logic formula where I am comparing a variable time to a fixed time. If the variable time is greater than the fixed I assign a value "1", if it is less than I assign the value "0". The problem I'm facing is the fixed time is 12:00 am, so the variable is always considered greater. The formula I'm trying to use is: =IF(A1A2,1,0) where A1 is the variable time. How can I correct this so that 11:50 pm is LESS than 12:00am and 1:00am is GREATER than 12:00am? -- Thanks! RKEMPER |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Time Calculation | Excel Worksheet Functions | |||
Time Calculation Formula! | Excel Discussion (Misc queries) | |||
perform calculation only if current time is after 10 am | Excel Worksheet Functions | |||
"Manual calculation" takes less time. Why? | Excel Discussion (Misc queries) | |||
time calculation excel | Excel Worksheet Functions |