#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Comparing two times


when comparing two different times why is 00:30 minutes giving me a
number like .02083333333333333333 and 0:30 minutes from a vlookup table
is giving me a number like .0208333333284827

whats up with that that is why my conditional formatting is a problem

ed


--
changetires
------------------------------------------------------------------------
changetires's Profile: http://www.excelforum.com/member.php...o&userid=35414
View this thread: http://www.excelforum.com/showthread...hreadid=565366

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Comparing two times

This is caused by the floating point arithmetic engine within Excel, it is
limited in its precision (as are most other applications).

The solution is to take one from the other and check that it is not greater
than a small number, such as

=ABS(A26-A27)<0.000001

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"changetires"
wrote in message
...

when comparing two different times why is 00:30 minutes giving me a
number like .02083333333333333333 and 0:30 minutes from a vlookup table
is giving me a number like .0208333333284827

whats up with that that is why my conditional formatting is a problem

ed


--
changetires
------------------------------------------------------------------------
changetires's Profile:

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



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default Comparing two times

Why not just use the ROUND function on the two times in your conditional
formatting formula, to force them to the same number of decimal places? From
your example data, they are identical out to 10 decimal places. Do you need
more precision than that?

Hope this helps,

Hutch

"changetires" wrote:


when comparing two different times why is 00:30 minutes giving me a
number like .02083333333333333333 and 0:30 minutes from a vlookup table
is giving me a number like .0208333333284827

whats up with that that is why my conditional formatting is a problem

ed


--
changetires
------------------------------------------------------------------------
changetires's Profile: http://www.excelforum.com/member.php...o&userid=35414
View this thread: http://www.excelforum.com/showthread...hreadid=565366


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
Avg Times in MOD fx using selected rows vldavis809 Excel Worksheet Functions 2 July 7th 06 10:08 AM
Comparing Calculated Times Mike Excel Worksheet Functions 2 July 3rd 06 04:30 AM
Comparing Times To Make Sure No Overlap Matt Excel Worksheet Functions 0 June 29th 06 04:37 PM
Comparing Times Just Learning Excel Discussion (Misc queries) 4 August 19th 05 06:27 PM
Comparing Times trumpy81 New Users to Excel 2 June 29th 05 11:01 AM


All times are GMT +1. The time now is 08:15 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"