Wild Card Vlookup Table Array

delpiero5464

New Member
Joined
Aug 18, 2015
Messages
2
I've got a column (I:I) that contains a string of text. I need to lookup a shorter string from a different sheet/table within I2. For instance, I2 = 14FS UL Primary 2015-16. My table (A:B) has A = 14FS UL B = Full. I would like the lookup formula in J2 to bring in "Full".

I've tried using: =VLOOKUP(I2,"*"&$A$2:$B$21&"*",2,FALSE), but that errors. Is there a way to put wild cards around the values in the table array?

Thanks in advance for any help.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi and welcome to the forum,

Perhaps try something like this, using CTRL-SHIFT-ENTER rather than just ENTER as this is an array formula:

Code:
=LOOKUP(
    2,
    1 / IF(A$2:A$21 <> "", SEARCH(A$2:A$21, I2)),
    B$2:B$21)
 
Upvote 0
Thanks circlechicked. That worked great. Would you mind explain the different components of this formula and what they do? Also, what's the difference between ctrl-shift-enter vs. just enter?

Thanks for the help!
 
Upvote 0

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

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