Convert h m s (text) to excel time for calculation purposes

domdc1

Board Regular
Joined
Apr 10, 2006
Messages
63
Hi there all.... HNY !!!

I have a 100+ line report that is outputted as text. It has a duration column which is displayed as '1h 12m 16s'. I'm trying to convert this column as a workable time output where I can determine averages, max, min etc. I can do that once it is in a time format but the challenge is getting it to that format.

Thanks in advance
Domenic
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
try this

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"h",":"),"m",":"),"s","")," ","")
 
Upvote 0
Worked great !!!! i was able to change the output to an excel time format & voila !

thanks again
 
Upvote 0
Worked great !!!! i was able to change the output to an excel time format & voila !

thanks again
glad that work for you and thanks for the feed back
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

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