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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
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,215,410
Messages
6,124,756
Members
449,187
Latest member
hermansoa

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