仅在Excel中对文本进行数据验证

时间:2016-02-07 16:21:51

标签: excel validation excel-formula

请建议我自定义数据验证公式,仅允许文字和空格

即。适用于约翰史密斯"和"蒙蒂" " 12356"," 45 Smith"," John45"," John Smith 5"," 78John"等

1 个答案:

答案 0 :(得分:2)

使用此:

=ISNUMBER(SUMPRODUCT(SEARCH("~"&MID(A1,ROW(indirect("1:" &Len(A1))),1),"abcdefghijk lmnopqrstuvwxyz")))