Creating Dependent Searchable Lists (List Box Dependent on Combo Box)

antman2988

Board Regular
Joined
Jun 28, 2018
Messages
78
Hi All,

I am not entirely sure how I should go about accomplishing this because I believe there are a few ways to do this.

I have a list of data similar to below:

0582 051
0582 954
0582 725
1275 654
1275 777
5290 936
5290 003
5290 051
5290 923
5290 000

Basically, I want to create dependent list boxes, combo boxes, or drop down lists. I feel as though combo boxes would be the best because the first box is going to be populated with over a thousand codes (first column) so it would be best if the codes were searchable. Depending on the choice selected in the first box, only 20 or less options will appear as choices in the second box. However, the second box needs to allow for multiple selections. A list box would probably be the best option for this. How could I create a list box dependent on a combo based on the setup of the data above?

In addition, would the second box populate another cell with its data? For example, all of the codes that are selected in the second box should appear in the cell next to it.

If there is any more information I can provide, please let me know.

Any help is appreciated!

Thanks,
Anthony Smith
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I apologize for being ignorant, but what are the other command buttons doing?
Also, sorry for a late response as I've been busy with other assignments.

Thank you for all of the help.
 
Upvote 0
You're welcome
I think the other Commandbuttons in the second sheet where just for a few tests, I think everything you want is on the first sheet.
 
Upvote 0
I know it's been about a week, but I was updating the data on the second sheet, and I kept getting a mismatch error with the new data. The issue seemed to be with the data being in a text format. I fixed this by converting it back to a general format. Unfortunately, this takes away the leading zero (I didn't have a code with a leading zero in my previous example) so I used a custom format instead to keep the leading zero. This doesn't give me an error, however, the leading zero doesn't appear in the combobox. How do I adjust the code to maintain the leading zero? Also, an error appears when trying to type into the combo box. Is it possible to make it searchable?

Thanks again!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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