Convert Text to duration

Joined
Jun 30, 2014
Messages
3
Hello,

I've seen this questions posted in other variation in this forum, so I think you guys would know the trick.
I have downloaded a large file in excel with a column supposedly showing duration:

Example:
0h 5m 16s
0h 5m 33s
0h 6m 2s

<colgroup><col></colgroup><tbody>
</tbody>
It is however not letting add the number to get something like: Total= 0h16m51s or 16.9minutes. I would like to know for example the average time taken for each trip. I have over 10,000 entries, so counting by hand or editing the cells is out of the question here.

Thanks for all the help!
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Are there always h,m, and s in the original data even if the value for it is 0?

You could do a find and replace on the h(space) and replace with :
with m(space) and replace with :
replace s with nothing

Then take the average
 
Last edited:
Upvote 0
Are there always h,m, and s in the original data even if the value for it is 0?

The data set is shown as is. There is always an h, m and s. Furthermore if I try to convert to other formats (time, general, accounting, numbers) it doesn't change anything. Any additions at this point result in 0.
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,797
Members
449,048
Latest member
greyangel23

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