我希望单元格抛出错误“ Only enter alphabets. Not allow special characters and Numbers"
。即使我输入DOT .
,它也应该抛出停止错误消息。
可以进行数据验证吗?
示例:
ANIL KUMAR .P is ERROR
and ANIL KUMAR P is RIGHT
不允许:
特殊字符:
"!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"
数字:0123456789
答案 0 :(得分:2)
您可以使用自定义DV公式,例如:
=AND(MIN(CODE(MID(UPPER(SUBSTITUTE(A1," ","")),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(A1," ","")))),1)))>64,MAX(CODE(MID(UPPER(SUBSTITUTE(A1," ","")),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(A1," ","")))),1)))<91)
确保取消选中“忽略空白”选项。