Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can you use wildcards with vlookup?

Tags:

excel

i would like to do a vlookup, but i would like it to match the SUBSET of a cell. is this possible?

for example, if i am looking for "alex is smart" and the cell has "alex is smart blah blah", i want it to match on alex is smart

is this possible?

like image 365
Alex Gordon Avatar asked Oct 11 '10 23:10

Alex Gordon


1 Answers

You can use wildcards in the lookup value argument. If cell A1 contains the text "alex is smart" you can use:

=VLOOKUP("*"& A1 &"*",A2:B3,2,FALSE)

You can also hard-code the lookup value like:

=VLOOKUP("*alex is smart*",A2:B3,2,FALSE)
like image 177
Doug Glancy Avatar answered Oct 20 '22 00:10

Doug Glancy