Calculating & adding elapsed time
Posted by Kate on February 01, 2002 8:30 AM
I've read allthe posts on this, but can someone further clarify about calculating elapsed time and summarizing the info?
I have a series of beginning and ending times (i.e. 10:02 & 14:17), and I need to have a third column with the amount of time elapsed between the two (i.e. 4:15), expressed in hours and minutes.
So I'll have 4 columns: Date, BeginningTime, EndTime, and ElapsedTime
All of the posts and your tips seem to recommend the following formula:
ElapsedTime=(EndTime+(EndTime < BeginningTime)-BeginningTime)
QUESTIONS:
1) Why couldn't I just do Elapsed=End-Beginning? What's the difference?
2) What does the part in parentheses do? I'm referring to this segment:
(End < Beginning)
3) In my initial attempts, I had the ElapsedTime column formatted as hh:mm, but when I tried to add these numbers up (TotalElapsedTime) it didn't work. Or rather, it was fine up to a total of 24 hours, then the clock seemed to start over. Is the format [h]:mm just an indication to give total elapsed time in hours and minutes?
4) I will sometimes, though rarely, have times that begin on one day and end after midnight (though no actual period calculated is more than 12 hours); will this still work?
5) Is all this really accurate? I need the TOTAL ELAPSED TIME to be accurate.
Thanks for any help you can give. I sent this to Mr. Excel, but then realized maybe someone else might be able to answer as well.
Kate