Hi
I created a UDF to do just this a few years ago.
It used "," and "/" as delimiters. The first two rows tell the function what to do if the target cell is empty or has "-" in it.
I will dig it out for you.
Function HIGHEST(test As String)
If test = "-" Then HIGHEST = "-": GoTo 200
If test = "" Then HIGHEST = "TBA": GoTo 200
Dim no1 As Double
5 If Right(test, 1) = "," Or Right(test, 1) = "/" Then test = Left(test, Len(test) - 1): GoTo 5
10 If InStr(1, test, ",") = False And InStr(1, test, "/") = False Then pos = Len(test) + 1: GoTo 20
pos = InStr(1, test, ","): pos2 = InStr(1, test, "/"): If pos2 = 0 Then pos2 = pos
If pos = 0 Then pos = pos2
If pos2 < pos Then pos = pos2
20 temp = Left(test, pos - 1)
If pos < Len(test) Then test = Trim(Right(test, Len(test) - pos))
no1 = Val(Left(temp, pos - 1))
If no1 > HIGHEST Then HIGHEST = no1
If test = temp Then GoTo 200
GoTo 10
200 ' Exit
End Function
Bookmarks