user8100689
user8100689

Reputation:

Convert Geographic Time Format to HH:MM:SS

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

Answers (1)

user4039065
user4039065

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.

enter image description here

Upvotes: 2

Related Questions