Convert text to time

SimonHughes

Well-known Member
Joined
Sep 16, 2009
Messages
507
Office Version
  1. 365
Platform
  1. Windows
Hello All, is there any way to convert these times into a proper time format? TIA

GC TIME
28 m 34.846 s
31 m 1.347 s
31 m 11.698 s
31 m 38.859 s
32 m 8.944 s
32 m 12.423 s
32 m 26.875 s
32 m 53.788 s
32 m 56.865 s
33 m
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Try:

Excel Formula:
=TIMEVALUE("00:" & TRIM(TEXTBEFORE(A2,"m",,1,,"00:")) & TRIM(SUBSTITUTE(TEXTAFTER(A2,"m",,1,,"00"),"s","")))

Use this format cell:
hh:mm:ss.000
 
Upvote 0
Upvote 0
Solution
Try:

Excel Formula:
=TIMEVALUE("00:" & TRIM(TEXTBEFORE(A2,"m",,1,,"00:")) & TRIM(SUBSTITUTE(TEXTAFTER(A2,"m",,1,,"00"),"s","")))

Use this format cell:
hh:mm:ss.000
Thanks Dante but it is returning a surprise

GC TIMEConverted
28 m 34.846 s00:47:14.846
31 m 1.347 s00:05:11.347
31 m 11.698 s00:51:51.698
31 m 38.859 s00:52:18.859
32 m 8.944 s00:05:28.944
32 m 12.423 s00:53:32.423
 
Upvote 0
Try:

Excel Formula:
=TIMEVALUE("00:" & TRIM(TEXTBEFORE(A2,"m",,1,,"00:")) & ":" & TRIM(SUBSTITUTE(TEXTAFTER(A2,"m",,1,,"00"),"s","")))
 
Upvote 0
Upvote 0
Upvote 0
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,354
Members
453,033
Latest member
lapmangviettel

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