Search code examples
excelformula

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. 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.

For example I type "Grapes" Should give me answer of 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)


Solution

  • Use Wildcards (*) and look for exact instead of relative:

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