How can I calculate elapsed time on a Report

Steve in Atlanta

New Member
Joined
Jun 16, 2004
Messages
31
When calculating elapsed time between two times in military format I have problems if one of the times is before midnight and the other is after. For instance, if the start time is 23:48 and the end time is 00:59 the elapsed time is 1:11. It is displaying as 22:49. Also, how can I get it to display seconds as well (hh:mm:ss)
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
To displsy in HH:MM:SS use the formst hh:nn:ss

As for the problem of running into more than one day then you realy need to use a date/time stamp. If you are sure that the period will never exceed 24hrs you could construct an if statement to add 24hrs if the second time is smaller than the first time though.

Peter
 
Upvote 0

Forum statistics

Threads
1,221,773
Messages
6,161,855
Members
451,724
Latest member
sledparty

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