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....

[TABLE="width: 500"]
<tbody>[TR]
[TD]Rehab Support Worker[/TD]
[TD]Support Worker[/TD]
[/TR]
[TR]
[TD]Assistant Support Worker[/TD]
[TD]Support Worker[/TD]
[/TR]
[TR]
[TD]Accommodation Support Worker[/TD]
[TD]Support Worker[/TD]
[/TR]
[TR]
[TD]Assistant Accountant[/TD]
[TD]Accountant[/TD]
[/TR]
[TR]
[TD]Management Accountant[/TD]
[TD]Accountant[/TD]
[/TR]
[TR]
[TD]Deputy Accountant[/TD]
[TD]Accountant[/TD]
[/TR]
</tbody>[/TABLE]

any help is greatly appreciated
Anthony
****** id="cke_pastebin" style="position: absolute; top: 93px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]Support Worker[/TD]
[/TR]
</tbody>[/TABLE]
</body>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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