Greetings poloalpha,
I see you just joined, welcome to vbaexpress . I'm sure you'll be glad you did, as there's great follks here
As to your questions, just a different try:
As to the first bit (getting the left part of: 10050.2, new_version102_0), I'm not sure if we can count on the left part being a 'number', so this may well not be stellar. Just to see if it works, as a UDF:
Option Explicit
Function RETLEFT(ByVal CellString As String) As Variant
Static REX As Object
If REX Is Nothing Then
Set REX = CreateObject("VBScript.RegExp")
End If
With REX
.Global = False
.IgnoreCase = True
.Pattern = "([0-9]+[.]?[0-9]*\,)(.*version.*)"
If .Test(CellString) Then
RETLEFT = .Execute(CellString)(0).SubMatches(0)
Else
RETLEFT = vbNullString
End If
End With
End Function
I was thinking that to split based on the last comma, maybe:
Function RETSPLIT(ByVal CellString As String) As Variant
Dim ary(1 To 2)
Dim Pos As Long
Pos = InStrRev(CellString, ",")
If Pos > 0 Then
ary(1) = Left(CellString, Pos)
ary(2) = Trim(Mid(CellString, Pos + 1))
Else
ary(1) = vbNullString
ary(2) = vbNullString
End If
RETSPLIT = ary
End Function
...again as a UDF, but entered as an array formula across two cells.
Hope that helps, and again, welcome to VBAX :-)
Mark