lookup with wildcards

mtwebbmc

New Member
Joined
Apr 18, 2014
Messages
5
I have a sheet1 with column a that has streets on it and column b has side of town

column a column b
bill main
bob east
ted west

i have another sheet2 that has a column listed as address i want a column to say the side of town its on

column address column side of town
123 bill st main
89 ted cir west
421 bob lp east

I dont mind if it has to be a vba or a formula the key thing i want to look for is the bill ted or bob to determine what side of town it is.

i've tried index match vlookup but can't figure out a way to use wildcards like *bill* or *ted* or *bob*

thanks for any help
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Welcome to the MrExcel board!

I've just done this in one sheet but you should be able to adapt to 2 sheets if it is what you want. Or post back.

Formula copied down.

Excel Workbook
ABCDEF
1column addresscolumn side of town
2123 bill stmainbillmain
389 ted cirwestbobeast
4421 bob lpeasttedwest
Town side
 
Upvote 0
Without division which is costly...

=LOOKUP(9.99E+307,SEARCH($E$2:$E$4,A2),$F$2:$F$4)
Can't argue with the statement, but just pointing out that the quantum does not appear to be great.
With 50,000 rows of data and 10 items in the lookup range the difference was about 2/100 of a second or about 4% on my machine running Win 7 and Excel 2010.
 
Upvote 0
Can't argue with the statement, but just pointing out that the quantum does not appear to be great.
With 50,000 rows of data and 10 items in the lookup range the difference was about 2/100 of a second or about 4% on my machine running Win 7 and Excel 2010.

I did hope it would be more. Thanks for profiling, Peter.
 
Upvote 0

Forum statistics

Threads
1,215,019
Messages
6,122,707
Members
449,093
Latest member
Mnur

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