简体   繁体   English

Excel 公式在列中搜索关键字并返回其行号

[英]Excel Formula to Search keyword in a column and return its row number

I am trying to have excel formula and I don't want to use macro code here.我正在尝试使用 excel 公式,我不想在这里使用宏代码。 I want to type in a word in column E4 and I should have a formula in E6 that will search for that word in the entire column A and return the row number.我想在 E4 列中输入一个单词,我应该在 E6 中有一个公式,它将在整个 A 列中搜索该单词并返回行号。

For example I type "Grapes" Should give me answer of 4例如我输入“葡萄”应该给我 4 的答案

here is my formula and I am not sure why it is not working, it is working with Grapes but for others it is not这是我的公式,我不确定为什么它不起作用,它适用于葡萄,但对其他人来说不是

Here is my formula: =MATCH(E4,A:A,1)这是我的公式:=MATCH(E4,A:A,1)

Use Wildcards ( * ) and look for exact instead of relative:使用通配符 ( * ) 并查找精确而不是相对:

=MATCH("*"&E4&"*",A:A,0)

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

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