Calculate difference between times and dates

Stuck2

New Member
Joined
Jun 16, 2011
Messages
4
Hi,

I have a two lists of "ddmmyy hh:mm:ss" in two separate columns. I need to calculate the time difference between the two values so that it returns the value in hh:mm:ss.

So for example -
A1 - 07/05/2011 07:29:52
B1 - 08/05/2011 13:41:12
I need to return the time difference in hh:mm:ss between the dates/times in A1 and B1. My formula of =B1-A1 won't work when the dates are different in the two cells.

I have a lot of data that I need to work out the time difference for so I really need a formula that I can apply to all of the rows of data.

Thank you very much in anticipation!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi,

I have a two lists of "ddmmyy hh:mm:ss" in two separate columns. I need to calculate the time difference between the two values so that it returns the value in hh:mm:ss.

So for example -
A1 - 07/05/2011 07:29:52
B1 - 08/05/2011 13:41:12
I need to return the time difference in hh:mm:ss between the dates/times in A1 and B1. My formula of =B1-A1 won't work when the dates are different in the two cells.

I have a lot of data that I need to work out the time difference for so I really need a formula that I can apply to all of the rows of data.

Thank you very much in anticipation!

Welcome to the forum try these out, the last one is simple one cell away from the other then used custom format

Excel Workbook
ABCDE
1StartEndHoursMinutesCustom format used [h]:mm
207/05/2011 07:2908/05/2011 13:4130181130:11
Sheet2
 
Upvote 0
That's brilliant thank you so much - the custom format using [h]:mm:ss did the trick.

Thanks again :)
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,543
Members
452,924
Latest member
JackiG

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