Vlookup - Partial Match

Jplace

New Member
Joined
Oct 20, 2017
Messages
4
Im trying to find a way to lookup the "part" to the "list" although there is only a partial match and cannot find a way to do this.



[TABLE="width: 368"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Part[/TD]
[TD]Partial Match[/TD]
[TD]List[/TD]
[/TR]
[TR]
[TD]ABCATASD[/TD]
[TD][/TD]
[TD]CAT[/TD]
[/TR]
[TR]
[TD]BDOGD[/TD]
[TD][/TD]
[TD]DOG[/TD]
[/TR]
[TR]
[TD]ASCXCOW[/TD]
[TD][/TD]
[TD]COW[/TD]
[/TR]
[TR]
[TD]MOUSEAQ[/TD]
[TD][/TD]
[TD]MOUSE[/TD]
[/TR]
</tbody>[/TABLE]

If someone could offer a solution that would be greatly appriciated

thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
try flipping the columns and using the below..not sure if it helps what you're trying to do because what you're looking for is on the same row of the part.

=VLOOKUP(LEFT(C2,SEARCH(C2,A2)),$C$2:$D$5,2)
 
Upvote 0
@Jplace, this can definitely be done; but it's not clear whether you are trying to locate partials within wholes, or use the wholes to find the partials. And the approach would differ depending on which. It's also not clear what kind of result you want or where you want that result to be placed (i.e., where the formulas would go).

What would your ideal results look like? Please provide actual Column letters and Row numbers.
 
Upvote 0
[TABLE="class: cms_table, width: 368"]
<tbody>[TR]
[TD] A

1 Part[/TD]
[TD]B

Partial Match[/TD]
[TD]C

List[/TD]
[/TR]
[TR]
[TD]2 ABCATASD[/TD]
[TD]CAT[/TD]
[TD]CAT[/TD]
[/TR]
[TR]
[TD]3 BDOGD[/TD]
[TD]DOG[/TD]
[TD]DOG[/TD]
[/TR]
[TR]
[TD]4 ASCXCOW[/TD]
[TD]COW[/TD]
[TD]COW[/TD]
[/TR]
[TR]
[TD]5 MOUSEAQ[/TD]
[TD]MOUSE[/TD]
[TD]MOUSE



[/TD]
[/TR]
</tbody>[/TABLE]

Hi @ErikTyler

Sorry i was in a rush when i made the above post. I'm looking to match the whole against the partial, I've tried using a vlookup with "*" but I can only see this working to match the partial against the whole and not the other way around. The result I'm looking for is in column "B" which would be returning the partial match against the whole.

Thanks for your help.
 
Upvote 0
@Jplace, I would suggest putting your match list (what is shown above in Column C) in Column A of its own tab (perhaps called "Legend"). The following formula assumes you will have done this and that your "Legend" tab list has a header (i.e., that the complete list begins in A2).

I don't know how many rows that legend might contain. I've included through A100 in my formula, but you can adjust according to the length of your actual list.

Lastly, this is an array formula, so it will need to be entered with Ctrl+Shift+Enter (not just Enter). You'll see curly brackets {} around the formula if you've done it correctly. Any time you might need to edit the formula, you'll need to be sure to confirm changes with Ctrl+Shift+Enter as well.

The formula would be placed in your main sheet in B2, then copy-dragged down as far as you need it to go:

Code:
=INDEX(Legend!$A$2:$A$100,MATCH(TRUE,ISNUMBER(SEARCH(Legend!$A$2:$A$100,A2)),0))
 
Upvote 0
would you have cattle, instead of cow ?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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