[英]Find certain characters in cell with Excel
I have a cell where a link can be pasted. 我有一个可以粘贴链接的单元格。 For example: https://stackoverflow.com/questions/ask 例如: https : //stackoverflow.com/questions/ask
I want the cell next to it say "wrong" IF the text contains " / " or " : " or " = ". 如果文本包含“ / ”或“ : ”或“ = ”,我希望它旁边的单元格说“错误”。 It should say "Correct" is none of these 3 characters are found in the text. 应该说“正确”是在文本中找不到这3个字符。
For example:
test/
Would give "Wrong" because it contains at least 1 "/"
/test:
Would give "Wrong" because it contains at least 1 ":" and at least 1 "/"
test///////
Would give "Wrong" because it contains at least 1 "/"
test/:=
Would give "Wrong" because it contains at least 1 "/", at least 1 ":" and at least 1 "/"
test123{}+_)
Would give "Correct" because it does not contain any "/", ":" or "="
I tried to work with nested IF, but I couldn't get it to work. 我尝试使用嵌套IF,但无法使其正常工作。 I kept getting errors when adding the third character to the formula. 在公式中添加第三个字符时,我总是出错。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.