Assuming your data is in A1, A2, A3: Try this
SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"h",""),"m",""),"s","")
SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"h",""),"m",""),"s","")
SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"h",""),"m",""),"s","")
"11h 14m 50s" is in cell A1
"1m 02s" might be in A2
"39s" might be in A3
"1h 02s" might be in cell A4"
Use =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"h",":"),"m",":"),"s","") in Cell B1 and then drag the cells down to copy them to B2, B3, B4, B5, ETC. Your table should look like this:
Thanks . That appears to work. I may need to find out how to manage a missing part of the time. I.e. missing minutes when only have hours and seconds (1h 35s).
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.