如何防止用户在Google表格中输入非字母数字字符

huangapple go评论49阅读模式
英文:

How can I prevent users from entering non-alphanumeric characters in a Google Sheet

问题

我尝试在列H上使用数据验证,应用自定义公式:=REGEXMATCH(H1, "^[a-zA-Z0-9]+$");但毫无效果,Google表格告诉我这个公式无效。2020年时它还有效。Google改了什么吗?

英文:

I tried using the Data Validation on the column H by applying the custom formula: =REGEXMATCH(H1, "^[a-zA-Z0-9]+$"); but to no avail, Google Sheets tells me that this formula is invalid.
Back in 2020 it worked. Did Google change something?
如何防止用户在Google表格中输入非字母数字字符

答案1

得分: 1

从截图看,表格区域使用分号 ; 而不是逗号 ,

使用 =REGEXMATCH(A1; "^[a-zA-Z0-9]+$")

英文:

From the screenshot it looks like the sheet locale uses semicolon ; convention instead of ,

go with =REGEXMATCH(A1; "^[a-zA-Z0-9]+$")

huangapple
  • 本文由 发表于 2023年2月19日 05:50:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/75496614.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定