View Single Post
  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

Did you use:
=c2-c3

If you did, then when excel sees negative times (or dates), it shows them as
####'s.

You can avoid this by using the 1904 base date system.

Tools|Options|calculation tab is where you'd toggle this.

But if you have any dates in that workbook, they'll change by 4 years and one
day.

If c2 is the following day, you could do this:

=c2-c3+if(c2<c3,24,0)
or shorter
=c2-c3+(c2<c3)

A more robust way would be to enter both the date and time in each cell.

Art wrote:

Dodo & William

I have encountered this error. Could you tell me what I'm missing.

c3 = 22:47:00
c2 = 00:01:00

answer: ##############

I only get the above answer when using the midnight time.



"Art" wrote:

Thank you Dodo & William

"Art" wrote:

Need Help..

I would like to subtract the end time(hh:mm:ss) from the start
time(hh:mm:ss) to get the duration (HH:MM:SS) of how long a job took to
process.

Thanks.


--

Dave Peterson