ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help - Problem with date precission (https://www.excelbanter.com/excel-programming/344693-help-problem-date-precission.html)

Matt[_33_]

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


Matt[_33_]

Help - Problem with date precission
 
I fixed it .. Sorry guys. I dont know why it is but usually I spent an
hour thinking into the problem and as soon i post a question the answer
pops up in fornt of my mental eye ..

:) Matt



All times are GMT +1. The time now is 03:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com