Vlookup or similar function & "Contains"

hellomynameiskristin

Board Regular
Joined
Jan 6, 2011
Messages
60
I am looking for a vlookup or similar function where the lookup value may be in a different form. Meaning.

In my lookup value, it could be: John Smith.

But in the first column in my aray, it could be J. Smith/Smith, John/or John Smith.

So I would like to on my lookup value page, creat a new column (since thats the shorter list) where I will just put their last name, and then have a vlookup/type formula that will look for values that CONTAIN "Smith"

any help GREATLY appreciated!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
And to update, I tried a formula with a wild card:
=VLOOKUP("*W10*",Lookuparray,2,0)

[W10 is my lookup cell that contains "Smith"]

and it doesn't work...
 
Upvote 0
Updated! I answered my own question! HAHA!

for those in google world that might stumble upon this.

Your lookup value needs the asterick, not the look up cell in your formula! (slaps forehead)

so in my look up cell I put *Smith* and my regular vlookup works.

:cool:
 
Upvote 0
Try this for mutiple returns
A1 is lookup value
B1 =INDEX(D:D,MATCH(SMALL(E:E,ROW(E1)),E:E,0)) copy down a few rows
Col D is list of names
E1 =IF(ISNUMBER(SEARCH(A1,D1)),ROW(),"") copy down to match col D.
If you want exact spelling change SEARCH to FIND

My 1st answer on this forum. Hope it helps.
 
Upvote 0

Forum statistics

Threads
1,224,534
Messages
6,179,391
Members
452,909
Latest member
VickiS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top