Is there a Non-VBA way to check Col B and Col C to see if they contains any characters that are Non-Alpha? Just to clarify by Non-Alpha I mean anything not part of the alphabet(case insensitive).
Col B and Col C is a list of First and Last Names. Some of these names have symbols or numbers in them through bad data entry. I am trying to find all the ones that need to be fixed. So I need to find the ones that contain ANYTHING that is not a letter.
There is a "weird" but simple and generic answer.
This formula returns
#VALUE!
error if A1 contains any non-letter characters, number if A1 contains only letters, or#REF!
error if A1 is blank.You can enclose this formula in an
ISNUMBER
orISERR
to convert this to a TRUE/FALSE value.Replace the
SEARCH
with aFIND
to make it case sensitive.You can put any character in the
"abc...xyz"
string. This makes it easy to test of alphanumeric, or common punctuations, etc.The
"1:"&LEN(A1)
means that starting from the first letter, all the way to the last letter will be checked. Changing that to"2:"&(LEN(A1)-1)
will not check the first and last letters.You can use 26 nested
SUBSTITUTE
s to remove all alphabetic characters from the text.If anything is left over, the cell contains non-alpha characters.
And thanks to @RaGe for pointing out that you need to check for empty cells as well: