#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rkemper
 
Posts: n/a
Default Time calculation

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Time calculation

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time Calculation Tim Mills Excel Worksheet Functions 6 July 27th 05 06:13 PM
Time Calculation Formula! Mike Excel Discussion (Misc queries) 5 July 23rd 05 04:37 AM
perform calculation only if current time is after 10 am julieskennels Excel Worksheet Functions 7 July 18th 05 08:07 PM
"Manual calculation" takes less time. Why? Kjetil Excel Discussion (Misc queries) 1 January 7th 05 12:28 AM
time calculation excel Gate Keeper Excel Worksheet Functions 1 December 31st 04 08:27 AM


All times are GMT +1. The time now is 11:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"