UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Excel and Time Calculations    
 
   
dilligaf
post Aug 28 2007, 09:44 AM
Post #1

UtterAccess Member
Posts: 43



Good morning, He is my next issue:

I have a field satrt time and a field end time. These are date and time fields.

What i need is to find out how much time in days, hours, minutes, and seconds have passed between the two dates. When i try to do it:
End-Start I get the answer i need with the cell formated d:h:mm:ss
However when I add them all up when it gets to thirty days it switches over to 0. An example

Elapsed Time (D:H:MM:SS):

6:10:10:10 (+)
6:20:10:10 (=12:30:20:20 +)
12:20:10:10 (= 00:50:30:30)

I hope that is clear, the numbers on the left are the elapsed times.
Is their a way i can make it not roll over? The ultimate goal is to find the average of the three entries. I am currently using a pivot table to do the average function and it is messed up too. However one issue at a time.

Thanks for the help.

Scott
Go to the top of the page
 
+
Luceze
post Aug 28 2007, 10:02 AM
Post #2

UtterAccess VIP
Posts: 2,601
From: Dallas, Texas USA



There is not a direct way of doing this via formatting. You can use a worksheet function to return the format that you want.

For example...

If the range that you want to sum is in A1:A50 then this should do the trick. Note that you can't do time calculations with the result of this formula.

=INT(SUM(A1:A50))&TEXT(SUM(A1:A50),":hh:m:ss")
Go to the top of the page
 
+
dflak
post Aug 28 2007, 04:46 PM
Post #3

Utter Access VIP
Posts: 3,549
From: North Carolina



Actually it rolls over at 31 days as the cumulative date goes from January 31, 1900 to February 1, 1900. Internally the numbers are OK and you can use them for calculations. So you can use them for "go." Use Eric's trick for "show."

If you want you can use the following format [h]:mm:ss which will give you total hours e.g 754:13:42.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 20th May 2013 - 12:41 AM