I have some values like this: Cluster_0052.001.1
I want the numeric portion. I used a formula that worked for most of them =RIGHT(A2,LEN(A2)-8)*1. However, there are about a 1000 where this didn't work. I even tried in VBA and they wouldn't convert (i get a type mistmatch error):
I want the numeric portion. I used a formula that worked for most of them =RIGHT(A2,LEN(A2)-8)*1. However, there are about a 1000 where this didn't work. I even tried in VBA and they wouldn't convert (i get a type mistmatch error):
Code:
For i = 16105 To 17028
cL = Application.WorksheetFunction.Clean(Trim(Range("D" & i).Value))
nC = Right(cL, Len(cL) - 8)
converted = CDbl(nC)
Range("A" & i).Value = converted
Next i