Check if cell contains Non-Alpha characters in Excel

前端 未结 2 547
别那么骄傲
别那么骄傲 2020-12-09 10:01

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 alpha

2条回答
  •  执笔经年
    2020-12-09 10:27

    You can use 26 nested SUBSTITUTEs 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:

    =AND(ISTEXT(A2),SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LOWER(A2),"a",),"b",),"c",),"d",),"e",),"f",),"g",),"h",),"i",),"j",),"k",),"l",),"m",),"n",),"o",),"p",),"q",),"r",),"s",),"t",),"u",),"v",),"w",),"x",),"y",),"z",) = "")
    

    enter image description here

提交回复
热议问题