Sub google()
Dim Cel As Range
Dim DerLig As Long
Dim X As Long
DerLig = [D65000].End(xlUp).Row
With Application
.DisplayAlerts = False
.ScreenUpdating = False
End With
Range("D2:D" & DerLig).TextToColumns Destination:=Range("E2"), DataType:=xlDelimited, _
OtherChar:="–"
For Each Cel In Range("E2:E" & DerLig)
X = InStr(1, Cel, "km")
If X > 0 Then
Cel = CDbl(Left(Cel, X - 2))
Else
X = InStr(1, Cel, "m")
Cel = Format(CDbl(Left(Cel, X - 2)) / 1000, "0.000")
End If
Next Cel
For Each Cel In Range("F2:F" & DerLig)
If InStr(1, Cel, "heure") > 0 Then
X = InStr(1, Cel, "heures")
If X > 0 Then
Cel = CDate(Val(Mid(Cel, X - 3, 2)) & ":" & Val(Mid(Cel, X + 7, 2)))
Else
X = InStr(1, Cel, "heure")
If X > 0 Then
Cel = CDate(Val(Mid(Cel, X - 2, 1)) & ":" & Val(Mid(Cel, X + 6, 2)))
End If
End If
Else
X = InStr(1, Cel, "minute")
If X > 0 Then
Cel = CDate("00:" & Val(Mid(Cel, X - 3, 2)))
End If
End If
Next Cel
Range("F2:F" & DerLig).NumberFormat = "[$-F400]h:mm:ss AM/PM"
End Sub