Hello PVMan;
Justins work is great ! But here is some code that might clear up the new requirements (e.g. cells with no values and leading zeros) ... if you'd like.
If you want to continue and wait for Justin to get back to you , that's cool too.
cheers
Sub EditNumberStrig()
Dim NumList, NumStr
Dim Num As String, editedNumStr As String
For Each NumList In Columns("A:A").SpecialCells(xlCellTypeConstants, 3)
editedNumStr = ""
For Each NumStr In Split(NumList, ",")
Num = Trim(NumStr)
If Left(Num, 2) = "05" Or Left(Num, 1) = "5" Then
If editedNumStr = "" Then
editedNumStr = Num
Else
editedNumStr = editedNumStr & "," & Num
End If
End If
Next NumStr
NumList.NumberFormat = "@"
NumList.Value = editedNumStr
Next NumList
End Sub
Display More