Excel:在单元格中找到"a"或"b" [英] Excel: find 'a' or 'b' in a cell
本文介绍了Excel:在单元格中找到"a"或"b"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Excel中的查找"公式,是否可以说在单元格中找到"a"或"b"(不使用vba)?
Using the 'find' formula in Excel, is it possible to say find either 'a' or 'b' in a cell (without using vba)?
例如;
A1 = 'West 1'
我尝试了Find(OR("1","2"),A1)
,但这引发了错误.
I tried Find(OR("1","2"),A1)
but that threw an error.
推荐答案
您可以使用此数组公式返回列表中任何字符的第一个位置:
You can use this array formula to returns first position of any character from the list:
=MIN(IFERROR(FIND({"1","2","3"},A1),""))
按 CTRL + SHIFT + ENTER 进行评估.
press CTRL+SHIFT+ENTER to evaluate it.
如果找不到任何内容,则返回0
.
It returns 0
if nothing found.
这篇关于Excel:在单元格中找到"a"或"b"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文