lookup with wildcard

p4nny

Board Regular
Joined
Jan 13, 2015
Messages
246
Hi,

Assuming these are 2 seperate lists in different tabs

I would like to return the value in the second column as it is the closest match.

Is this possible?

If I wanted to return the first column i would use vlookup("*"&a1....

Rehab Support WorkerSupport Worker
Assistant Support WorkerSupport Worker
Accommodation Support WorkerSupport Worker
Assistant AccountantAccountant
Management AccountantAccountant
Deputy AccountantAccountant

<tbody>
</tbody>

any help is greatly appreciated
Anthony
****** id="cke_pastebin" style="position: absolute; top: 93px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
Support Worker

<tbody>
</tbody>
</body>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Heres a way based on what you have there:

=INDEX(workers,MATCH(TRUE,INDEX(ISNUMBER(SEARCH(workers,A1)),0),0))

where workers is a named range with in this instance Support Worker and Accountant in it.
 
Upvote 0
Works great thanks. The only thing is my dataset is 7000 rows and it runs quite slow but I can live with it.

Thank you
 
Upvote 0
Works perfect - the reason why it was slow was because I'd highlighted the whole column in the named range.

Thanks again
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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