Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help me valuating time


I have this problem:
I need to see if for exemple 17:00-16:00-1:00 = 0
Doing the direct formula the result is 0 like i want, but trying th
logical way, the result is false.
for exemple:
if B1 - 17:00 B2 - 16:00 B3-1:00

or(b1-b2-b3=0)

the answord should be true but the result i recive is *[u]false[/U*].


i know that the time expression is a fraction of time, so I transfor
the cell whit the expression 17:00 into 0,708333333 and make the sam
with the oders, the result of the formula wasn't 0 like i expected.
How can i resolve this problem.

Please help me!!

--
Gonçalo Ricard
-----------------------------------------------------------------------
Gonçalo Ricardo's Profile: http://www.excelforum.com/member.php...fo&userid=1530
View this thread: http://www.excelforum.com/showthread.php?threadid=27273

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Help me valuating time

It's a problem with FPA, there is a limit to its accuracy.

Don't know if this is acceptable but try

=(B1*1440-B2*1440-B3*1440)=0

--

HTH

RP

"Gonçalo Ricardo" wrote in
message ...

I have this problem:
I need to see if for exemple 17:00-16:00-1:00 = 0
Doing the direct formula the result is 0 like i want, but trying the
logical way, the result is false.
for exemple:
if B1 - 17:00 B2 - 16:00 B3-1:00

or(b1-b2-b3=0)

the answord should be true but the result i recive is *[u]false[/U*].


i know that the time expression is a fraction of time, so I transform
the cell whit the expression 17:00 into 0,708333333 and make the same
with the oders, the result of the formula wasn't 0 like i expected.
How can i resolve this problem.

Please help me!!!


--
Gonçalo Ricardo
------------------------------------------------------------------------
Gonçalo Ricardo's Profile:

http://www.excelforum.com/member.php...o&userid=15302
View this thread: http://www.excelforum.com/showthread...hreadid=272737



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help me valuating time

one second would be: .0000115741

so
if abs(b1-b2-b3) < .0000115741 then

or maybe allow 30 seconds of variation

if abs(b1-b2-b3) < .0000115741*30 then

--
Regards,
Tom Ogilvy


"Gonçalo Ricardo" wrote in
message ...

I have this problem:
I need to see if for exemple 17:00-16:00-1:00 = 0
Doing the direct formula the result is 0 like i want, but trying the
logical way, the result is false.
for exemple:
if B1 - 17:00 B2 - 16:00 B3-1:00

or(b1-b2-b3=0)

the answord should be true but the result i recive is *[u]false[/U*].


i know that the time expression is a fraction of time, so I transform
the cell whit the expression 17:00 into 0,708333333 and make the same
with the oders, the result of the formula wasn't 0 like i expected.
How can i resolve this problem.

Please help me!!!


--
Gonçalo Ricardo
------------------------------------------------------------------------
Gonçalo Ricardo's Profile:

http://www.excelforum.com/member.php...o&userid=15302
View this thread: http://www.excelforum.com/showthread...hreadid=272737



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 calculations for Scheduled Time vs. Actual Time Worked The Caterer Excel Discussion (Misc queries) 1 November 29th 09 08:08 AM
straight time, time and a half, and double time Jeremy Excel Discussion (Misc queries) 3 September 23rd 08 09:03 PM
Calculate Ending time using Start Time and Elapsed Time Chief 711 Excel Worksheet Functions 5 May 13th 08 04:34 PM
Subtracting Dates to get total time work time excluding weekends Jon Ratzel[_2_] Excel Discussion (Misc queries) 2 January 31st 08 10:36 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM


All times are GMT +1. The time now is 11:31 AM.

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"