Vlookup using partial name

Fredek

Board Regular
Joined
Mar 8, 2011
Messages
65
Hi guys,

I have a question, if I have two tables:

Table 1
133001, 133002, 146203, 171001, 171003, 171010ABC
190456, 194782DEF
190022XYZ

<tbody>
</tbody>

Table 2
133002
171001
194782

<tbody>
</tbody>

I would like to do a some sort of vlookup using column A Table 2 to return column B of Table 1. Is this possible?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi ,

You can use wildcards , as follows :

=VLOOKUP("*" & Table2 value & "*", Table1, 2, FALSE)

Here , Table2 value would be a reference to 133002 or 171001 or 194782.

Table1 would be a reference to the two columns of data which you have labelled as Table 1.
 
Upvote 0
Let A:B house the data of Table 1 and column F the data of Table 2.

In G2 enter and copy down:

=IF($F2="","",IFERROR(LOOKUP(9.99999999999999E+307,FIND(F2&",",$A$2:$A$4&","),$B$2:$B$4),"not found"))
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,400
Members
449,448
Latest member
Andrew Slatter

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