Excel combo box to display list of partial matches (any position)

Hello Experts
I would like to add a combox box that will return partial matches similar to Excel's "contains" table filter.

The user reads the Product name, then clicks on the adjacent Material column, and enters any text string they want. The drop down box will contain all the records from the Material sheet that match

Thanks for you help!
tomfolinsbeeAsked:
Who is Participating?
 
Martin LissOlder than dirtCommented:
I'm not very happy with this solution and you can ignore it if you want to.

In order to get the data validation list to show the data you want you need to
1.    type some string into column C
2.    select any other cell
3.    reselect the column C cell
4.    click the down-arrow.

I'll continue to work on it and let you know if I can do better.
Q-28565315.xlsm
0
 
Martin LissOlder than dirtCommented:
What do you mean by "The user reads the Product name"? Is the "Material Column" on the "Material" sheet?

Your question would be easier to answer if you could post your workbook.
0
 
tomfolinsbeeAuthor Commented:
Martin,

I rewrote the question for clarity.

Workbook has two sheets, Product and Material, each with one column of about 1500 unique text records. NameA and NameB. There are some exact matches between NameA and NameB, but generally, they are similar, with some variations, usually in the middle of the string. Objective is to help the user to find a single NameB record that corresponds to each NameA.

The user will select a record in the NameA column, and in the adjacent column, type in a text string. The application will display a dropdown list with all the partial matches in NameB, similar to Excel's "contains" option in the Data - Filter menu, ie, the matches can in any part of NameB, not just first few characters.

Prefer Office 365 version of Excel since multiple people will be responsible for working on the matching from a remote location (but not concurrently).
Test-EE-20141119.xlsx
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
Martin LissOlder than dirtCommented:
I can only give you an Excel 2010 based solution but I can generate it in xls format which I assume (but don't know for sure) that Office 365 can open.
0
 
tomfolinsbeeAuthor Commented:
Thank you!
0
 
Martin LissOlder than dirtCommented:
I'm working on this and I realized that I don't understand what "select[ing] a record in the NameA column" has to do with anything? Don't you just want the list to show all the Material sheet values that contain what the user types in?
0
 
tomfolinsbeeAuthor Commented:
Yes, you are right.  
I just meant that the user decides which row to work on...
0
 
Martin LissOlder than dirtCommented:
Please verify that you want the combobox to show entries from the Materials sheet that contain the string typed into the combobox no matter which row of column B is selected.
0
 
tomfolinsbeeAuthor Commented:
Correct, thanks.
0
 
tomfolinsbeeAuthor Commented:
Martin, it works really well. Changing the focus in order to populate the list isn't a problem. Very happy that we can now do mid-string matches... it's a big improvement. Thanks for your efforts!
0
 
Martin LissOlder than dirtCommented:
I like to keep my customers satisfied so here's an improvement where steps 2 to 4 above aren't needed. The previous version was also creating a list of matching strings in column B of the Material sheet to be used as a Named Range for the data validation. In this version I changed that column to ZZ to get it out of view. Note that if columns are added or deleted on the Material sheet that the column will no longer be ZZ, but the code will handle that. The code is based on my Magical Floating ActiveX Control article and if you find it helpful you can click the "Vote this article as helpful" button.

In any case you're welcome and I'm glad I was able to help.

In my profile you'll find links to some other articles I've written that may interest you.
Marty - MVP 2009 to 2014
Q-28565315-2.xlsm
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.