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:

[TABLE="width: 81"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Example:
0h 5m 16s[/TD]
[/TR]
[TR]
[TD]0h 5m 33s[/TD]
[/TR]
[TR]
[TD]0h 6m 2s[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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