Your first problem is solved easiest with the VLOOKUP function.
Paste into B1
=IF(ISNA(VLOOKUP($A1,$E$1:$G$4,1,0)) = FALSE,VLOOKUP($A1,$E$1:$G$4,1,0),"")
into C1
=IF(ISNA(VLOOKUP($A1,$E$1:$G$4,2,0)) = FALSE,VLOOKUP($A1,$E$1:$G$4,2,0),"")
and D1
=IF(ISNA(VLOOKUP($A1,$E$1:$G$4,3,0)) = FALSE,VLOOKUP($A1,$E$1:$G$4,3,0),"")
and then copy the three new entries down.
The second one can be down with a couple of user defined functions
Function Letters(Cell)
For N = 1 To Len(Cell)
If IsNumeric(Mid(Cell, N, 1)) = False Then
Letters = Letters & Mid(Cell, N, 1)
End If
Next N
End Function
Function Numbers(Cell)
For N = 1 To Len(Cell)
If IsNumeric(Mid(Cell, N, 1)) = True Then
Numbers = Numbers & Mid(Cell, N, 1)
End If
Next N
Numbers = Val(Numbers)
End Function
Put these on a module in the VBA editor. Use then like
to split the letters from the numbers in separate columns and then use usual sorting.
Bookmarks