Forum Discussion

dogbruder's avatar
dogbruder
Copper Contributor
Sep 23, 2023
Solved

Find a word within a list and return a related number from another Cell.

I have list such as the one below, and I need to find a word within that list and once the formula finds that it will return a number from an adjacent cell. I need to be able to enter the word husky ...
  • HansVogelaar's avatar
    Sep 23, 2023

    dogbruder

    Let's say the phrases are in A2:A50 and the corresponding numbers in B2:B50.

     

    Enter a word such as Husky in D2.

    Enter the following formula in E2:

     

    =XLOOKUP("*"&D2&"*", $A$2:$A$50, $B$2:$B$50, "", 2)

     

    or

     

    =IFERROR(VLOOKUP("*"&D2&"*", $A$2:$B$50, 2, FALSE), "")

Resources