Reputation:
Hello I am fairly new to VBA,
I have this specific time format looking like this:
1H 23’ 45,67”
Which translates to 01:23:45
as in HH:MM:SS
I am unsure if I could convert my range K2:K90
How would I approach this?
Upvotes: 1
Views: 56
Reputation:
try,
=TIMEVALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2, "H ", ":"), "' ", ":"), ",", "."),UNICHAR(8217)&CHAR(32), ":"), UNICHAR(8221), TEXT(,)), CHAR(34), TEXT(,)))
Format the cell as [hh]:mm:ss
or [hh]:mm:ss.000
as you like.
Upvotes: 2