List Box to Populate Another List Box From A Range

stapuff

Well-known Member
Joined
Feb 19, 2004
Messages
1,126
ListBox3 is a list of customers. Upon selection of a specific customer I would like to auto populate ListBox5 with that specific customers part#'s only.

sheet2 column A1:A150 has a list of customers (not 150 different customers - several are repeated).

Sheet2 column B1:B150 has a list of part #'s.(not 150 different part #'s - some part#'s go to different customers.

If Customer ABC is selected in ListBox3 all of Company ABC's part # populate ListBox5.


What suggestion might be available to accomplish this?

Thanks,

Kurt
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Aladin posted this a while back:

"The method is as follows:

Enter in some column what follows:

{"USA";"FRANCE"}[ That's, enter USA in a cell, then FRANCE in the next cell down ]

Select these cells, go to the Name Box on the Formula Bar, and type COUNTRIES followed by enter.

Enter in a column next to COUNTRIES:

{"New York";"Pittsburgh";"Los Angeles";"Boston"}

Name this range of cells USA via the Name Box as described above.

Enter in a column next to USA:

{"Paris";"Nice";"Toulon"}

Name this range FRANCE.

Just to see how this works,

activate A1 in some worksheet in the same workbook;

activate Data|Validation;

choose 'List' for 'Allow';

enter as 'Source' the formula:

=COUNTRIES

click OK;

activate another cell in the same worksheet, say, C1;

activate Data|Validation;

choose 'List' for 'Allow';

enter as 'Source' the formula:

=INDIRECT(A1)

click OK.

Now you have two lists of which the 2nd depends on the selection from the 1st. "
 
Upvote 0
RDK -

Thanks for the post back. I will take a look at it. I had create a solution on my own.

Basic concept would be to use autofilter, copy/paste visible cells then have the ListBox populate by a range.

Thanks,

Kurt
 
Upvote 0
Glad to help Kurt.
I can tell you by personal experience that Aladin's solution works like a charm. It took me no time at all to populate my validation boxes once I had the ranges set up properly.
 
Upvote 0

Forum statistics

Threads
1,214,837
Messages
6,121,883
Members
449,057
Latest member
Moo4247

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