попробуйте это:
Public Function proof_chrs(rng As Range, list As Range) As String
Dim i As Long
Dim s As String
proof_chrs = ""
If rng.Cells.Count = 1 And list.Count = 1 Then
s = rng.Text
For i = 1 To Len(s)
If InStr(1, list.Text, Mid(s, i, 1), vbBinaryCompare) = 0 Then proof_chrs = "Attention": Exit For
Next i
End If
End Function
и
Public Function proof_chrn(rng As Range, list As Range) As Long
Dim i As Long
Dim s As String
proof_chrn = 0
If rng.Cells.Count = 1 And list.Count = 1 Then
s = rng.Text
For i = 1 To Len(s)
If InStr(1, list.Text, Mid(s, i, 1), vbBinaryCompare) = 0 Then proof_chrn = i: Exit For
Next i
End If
End Function