Figuring the difference on two date/time fields

Scooter

New Member
Joined
Apr 29, 2002
Messages
4
Hello.

I am working to calculate the elapsed time, in hh:mm:ss between two date/time fields, including days. Such as 4/24/2002 3:58:15 PM and 4/25/2002 8:37:51 PM. I can use TEXT(F14-E14,"h:mm:ss"), but it does not handle the 28 hours.

Any suggestions?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
On 2002-04-30 08:43, Scooter wrote:
Hello.

I am working to calculate the elapsed time, in hh:mm:ss between two date/time fields, including days. Such as 4/24/2002 3:58:15 PM and 4/25/2002 8:37:51 PM. I can use TEXT(F14-E14,"h:mm:ss"), but it does not handle the 28 hours.

Any suggestions?

Hi scooter:
Take the differnce between two cells ...
=A1-B1 and custom format as [h]:mm:ss

Hope This Helps!
 
Upvote 0
Another possiblity if you only need a text date/time or don't want to change formatting on your cells is:

=INT((E8-E7)*24)&":"&TEXT(E8-E7,"mm:ss")

K
 
Upvote 0
Thanks! This works well..

Now, a follow up..

I want to take the result, and calculate a throughput. Ex. 1.59MB took 1:02 to transfer. Simple division, except the Text value does not work? I took (1.59/62)*60 to calc MB/min. I need to reference the previous cell instead of 62.

Do I need to convert to seconds (and how) then divide, and then what format do I use?
 
Upvote 0
Hi there, i just recently started using excel for some intense data collection. Now i need to extract some datas for certain time period. My date and time format is [as dd/time/h] e.g 231400H. I have tried the Text format. it doesnt show the result. Any idea how to get it.?
:oops:
 
Upvote 0

Forum statistics

Threads
1,213,530
Messages
6,114,163
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top