Search code examples
excellookup

How do I find a result in an adjacent cell when there is a mix of letters, formatting, and numbers?


I don't want to go too far into this project before getting my fundamental problem fixed. Excel problem

When I put in =LOOKUP(120/7C/ME,A2:A6,B2:B6). I get We're Working It when I should be getting Cargo Chargers. If I do this with simple 1,2,3 A,B,C it comes out correctly every time.

I am using H3 as my place where I will be putting my variable search info.


Solution

  • Use XLOOKUP() function. All the following formula should work.

    =VLOOKUP("120/7C/ME",A2:B6,2,FALSE)
    =INDEX(B2:B6,MATCH("120/7C/ME",A2:A6,0))
    =XLOOKUP("120/7C/ME",A2:A6,B2:B6)
    =FILTER(B2:B6,A2:A6="120/7C/ME")
    

    enter image description here