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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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