简体   繁体   English

Excel在单元格中找到确切的子字符串

[英]Excel find exact substring in cell

Using Excel formula, how do i find an exact substring match in a cell? 使用Excel公式,如何在单元格中找到完全匹配的子字符串?

For example: 例如:

Returns true if, 如果满足以下条件,则返回true:

substring: "AUS" 子字符串:“ AUS”

string: AUS Disaster recover site 字符串: AUS灾难恢复站点

Returns false if, 如果,则返回false

substring: "AUS" 子字符串:“ AUS”

string: Disaster Recover is important bec AUS e it ensures business continunity 字符串:灾难恢复是非常重要的BEC AUS E -这确保业务continunity

If the "AUS" you're looking for will always be capitalized, you can use FIND with an ISERROR . 如果您要查找的“ AUS”总是大写,则可以将FINDISERROR一起使用。 If the text you're evaluating is in cell A1, you can use the following formula 如果您要评估的文本在单元格A1中,则可以使用以下公式

=IF(AND(ISERROR(FIND("AUS ",A1)),ISERROR(FIND(" AUS",A1))),FALSE,TRUE)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM