I am trying to work on a dynamic converter in VBA that converts Inches to CM and so on, the issue is that the number will always be inside a cell string. For example I want to convert Dimensions: 8 x 2.6 x 0.9" to Dimensions: 20.32 x 6.6 x 2.28 cm. I have thought of several ways to do it but I can't figure it out. I have a function that extracts only the numbers from a cell string but it gets all the numbers and concatenates them.
Function GetNumeric(CellRef As String)
Dim StringLength As Integer
StringLength = Len(CellRef)
For i = 1 To StringLength
If IsNumeric(Mid(CellRef, i, 1)) Then Result = Result & Mid(CellRef, i, 1)
Next i
GetNumeric = Result
End Function
For example it takes 8 x 2.6 x 0.9 from the whole cell but it concatenates it to 82609. My usual delimiters are "x" or "by".

