Partial Match Return Results

tccontact

New Member
Joined
Sep 27, 2011
Messages
2
I have in one sheet in Column A a list of codes like: 1441a,1441f, 1441u, etc.
Column B lists the Product Name that the code corresponds to: Widget - Basic, Widget - Deluxe, Widget - Extreme, etc.

Column A will have different instances of this, so there can also be 4234a, 4234b, etc. and 9458a, 9458u, so I don't know how many cases there are with near matches.

I would love to either:
a) do some sort of VLOOKUP-type function where I could (if I put these codes on another workbook) return all Product Names if a partial match on the code is found. So anytime there is a match on the first four digits, all Product Names would be returned. So in this case a match would be found on 1441, and I would therefore see all the different names of the Widget product, and a match would be found on 4234, and 9458.

OR:
b) Perhaps this is easier - filter the column of codes or return results to me to show me any where there is a match of the first four digits/characters.



Apologies if this is long-winded and confusing. Thank you.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Create a column that just has the first four digits, using the LEFT function. then create a pivot table and use this newly created column as one of your row fields and bring in the Product name field as a second row field.
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,894
Members
452,948
Latest member
Dupuhini

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