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
[TABLE="width: 500"]
<tbody>[TR]
[TD]133001, 133002, 146203, 171001, 171003, 171010[/TD]
[TD]ABC[/TD]
[/TR]
[TR]
[TD]190456, 194782[/TD]
[TD]DEF[/TD]
[/TR]
[TR]
[TD]190022[/TD]
[TD]XYZ[/TD]
[/TR]
</tbody>[/TABLE]

Table 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]133002[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]171001[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]194782[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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