Format to Subtract Time help

rockchalk33

Board Regular
Joined
Jan 12, 2016
Messages
111
This is the data entry that I have is seen below:

2016.12.28T19:35:08.7235972Z

<tbody>
</tbody>

2016.12.28T19:34:57.7349678Z

<tbody>
</tbody>


Inside there is a "T" and following the "T" is a specific time. I need to get the difference in time between the two pieces of input. Thus in the above example it would be 19:35:08 - 19:34:57 for a total time of 11 seconds.

How can I use Excel to find the Time data in a string similar to those above and subtract it from one another?

Thanks!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

rockchalk33

Board Regular
Joined
Jan 12, 2016
Messages
111
try this:

=TEXT(MID(A1,SEARCH("T",A1)+1,8)-MID(A2,SEARCH("T",A2)+1,8),"HH:MM:SS")

Awesome!! Now my issue is summing up those differences, the value I receive looks like this "00:00:11" how to I add that to something like "00:00:35"? Thanks
 
Upvote 0

godsaaint

Active Member
Joined
Sep 16, 2016
Messages
285
Awesome!! Now my issue is summing up those differences, the value I receive looks like this "00:00:11" how to I add that to something like "00:00:35"? Thanks

try: =TEXT(B4+B5,"hh:mm:ss")

Changing B4 and B5 to the real cells you want to sum.
 
Upvote 0

Forum statistics

Threads
1,191,483
Messages
5,986,848
Members
440,053
Latest member
jhollingworth

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
Top