View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Matt[_33_] Matt[_33_] is offline
external usenet poster
 
Posts: 78
Default Help - Problem with date precission

Hi Guys,

now that my project is done I find another issue :(

I subtract 2 dates to get the duration in hours that has passed in
between:

AL2: 14:20:00 - 28 Sep 2005
AL5: 12:20:00 - 03 Oct 2005

This formula:

=$AL$2-$AL$5

yields this result:

118:00:00

which is correct.

Then I compare this value to a cell where I write 118:00:00.


=IF(AL$27AM$27,1,0)

The problem is that the duration it calculated is different. Although
they both say 118:00:00 the calcualted is different which you can see
if you make it a number with 10 digits...

Is there any way to correct this? or force it to round dates?

Matt