Log in

View Full Version : Calculate Difference Between Start Date Time And End Date Time



zorro
08-19-2016, 03:42 PM
Please help to subtract the start time minus end time , it will help me to calculate the actual time taken.



formattedClosedDate
formattedStartTime


Aug 17, 2016, 7:28:14 AM
Aug 17, 2016, 6:34:53 AM

Excel Fox
08-19-2016, 03:58 PM
Try this

=TEXT(DATEVALUE(LEFT(A1,12))+TIMEVALUE(MID(A1,14,4 0))-DATEVALUE(LEFT(B1,12))-TIMEVALUE(MID(B1,14,40)),"HH:MM:SS")

zorro
08-19-2016, 04:36 PM
Thanks, however no luck it gives #VALUE!

Rick Rothstein
08-19-2016, 07:18 PM
Thanks, however no luck it gives #VALUE!
Give this formula a try...

=A1-B1

and format the cell with the time format of your choice. If that does not work, then see if this one does instead...

=TEXT(SUBSTITUTE(A1,",","",2)-SUBSTITUTE(B1,",","",2),"hh:mm:ss")

snb
08-22-2016, 12:49 AM
Please help the helpers to help you: post a sample workbook!

zorro
08-24-2016, 11:34 AM
Sample file attached, please help.

Admin
08-24-2016, 12:09 PM
Hi

Swap the cells in the formula.

=TEXT(SUBSTITUTE(B2,",","",2)-SUBSTITUTE(A2,",","",2),"hh:mm:ss")

HTH

zorro
08-25-2016, 04:14 PM
Perfect, thanks for all your help, its working as expected.