#1   Report Post  
Eddie Munster
 
Posts: n/a
Default compare time

I would like to compare a calculated time in my work sheet vs. the actual
system time. For example, if the caculated time is than or = to the system
time I want excel to tell me to "CALL", if not then "REST"...any help would
be appreciated.

Thanks,
DE
  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default

Put your calculated time in a cell (say A1) In B1 put =NOW()
in C1 enter =IF(A1=B1,"CALL","REST)
--
Gary''s Student


"Eddie Munster" wrote:

I would like to compare a calculated time in my work sheet vs. the actual
system time. For example, if the caculated time is than or = to the system
time I want excel to tell me to "CALL", if not then "REST"...any help would
be appreciated.

Thanks,
DE

  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Student - did you test this?

Your formula should never result in "CALL", since NOW() returns a date
and time, not just a time.

If B1 contains =MOD(NOW(), 1), then the formula would work.

In article ,
Gary''s Student wrote:

Put your calculated time in a cell (say A1) In B1 put =NOW()
in C1 enter =IF(A1=B1,"CALL","REST)

  #5   Report Post  
Gary''s Student
 
Posts: n/a
Default

You are right JE. My calculated time was actually a date with time formatting
--
Gary''s Student


"JE McGimpsey" wrote:

One way:

If your calculated value is in A1, then

=IF(A1=MOD(NOW(),1),"CALL","REST")

In article ,
"Eddie Munster" <Eddie wrote:

I would like to compare a calculated time in my work sheet vs. the actual
system time. For example, if the caculated time is than or = to the system
time I want excel to tell me to "CALL", if not then "REST"...any help would
be appreciated.




  #6   Report Post  
Eddie Munster
 
Posts: n/a
Default

Thank you both...works like a charm!!!

"Gary''s Student" wrote:

You are right JE. My calculated time was actually a date with time formatting
--
Gary''s Student


"JE McGimpsey" wrote:

One way:

If your calculated value is in A1, then

=IF(A1=MOD(NOW(),1),"CALL","REST")

In article ,
"Eddie Munster" <Eddie wrote:

I would like to compare a calculated time in my work sheet vs. the actual
system time. For example, if the caculated time is than or = to the system
time I want excel to tell me to "CALL", if not then "REST"...any help would
be appreciated.


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
Lookup and compare to (today) + time and get result matteo Excel Discussion (Misc queries) 0 June 16th 05 07:43 PM
Time Sheet Calculation Help Needed! sax30 Excel Worksheet Functions 2 April 26th 05 08:08 PM
time interval calculations in excel Krishna Excel Discussion (Misc queries) 6 April 8th 05 02:57 PM
Calculating tvl time in Excel 2000 Rev.9.2720 Brandi Excel Worksheet Functions 5 January 27th 05 10:15 PM
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 12:57 PM


All times are GMT +1. The time now is 12:24 PM.

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

About Us

"It's about Microsoft Excel"