[Excel] Text Search with VLOOKUP

Solved
Mafia06 -  
 P-A -
Hello,

I would like my VLOOKUP formula to search for text instead of a value, is that possible?

2 answers

  1. gbinforme Posted messages 14930 Registration date   Status Contributor Last intervention   4 744
     
    Hello

    The sought value does exist in the reference table

    Probably not if you are getting "#N/A": your data likely contains trailing spaces and you should do an F2 on the cell to see that they are indeed present.
    --

    Always zen
    2
    1. Laurento Posted messages 2 Registration date   Status Member Last intervention  
       
      Hello,

      Thank you for your help.

      Actually, the mistake is silly... instead of naming the reference table, it was selected as follows =VLOOKUP(M3, table!A130:B494, 2, FALSE); consequently, when extending the selection, the reference table moved as well!
      Conclusion: =VLOOKUP(M3, table!$A$130:$B$494, 2, FALSE).
      0
    2. alexandra_c
       
      Hello Laurento,

      I had the same problem as you because, in the reference table, the values to search for were preceded by a '.
      I selected the entire column and converted it to number...

      If that can help someone!
      0