+ Reply to Thread
Results 1 to 8 of 8

multiple dropdown list

  1. #1
    Forum Contributor
    Join Date
    06-15-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2019
    Posts
    168

    Question multiple dropdown list

    Is it possible to have a different dropdown in one cell depending on a reference in another cell? For example, if in column A I have a dropdown of 6 items containing the name of 6 different companies. In column B I have 6 different dropdowns with employee names, and which dropdown appears would depend on the company name selected in the column A dropdown. Thanks for your consideration. Regards, Gary
    Last edited by allgeef; 03-27-2011 at 12:10 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: multiple dropdown list

    Have a look here for what might be an easier alternative...

    http://www.contextures.com/xldataval02.html
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: multiple dropdown list

    Oops. NBVC beat me to it.

  4. #4
    Forum Contributor
    Join Date
    06-15-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2019
    Posts
    168

    Re: multiple dropdown list

    This is working well. It does create a follow up question. Using the example on the link, if I select "Fruit" from the first named list, and then "Apple" from the supporting name list we have a good match. If I leave "Apple" in the supporting name list, but change the word to "Vegetable" in the first named list the word "Apple" remains until I select a new product from the supporting name list (like "Cabbage"). In my case a worker can inadvertently leave "Vegetable" and "Apple" together generating an incorrect price. Is there a way to stop, block, and/or blank the supporting name list if the first named list is changed? Regards, Gary

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: multiple dropdown list

    There are two ways to deal with the situation, one is VBA to remove the values that no longer match when an earlier cell is subsequently changed, the other is to use conditional formatting to flag the cell as having an inappropriate value in it now.

    Sample Files:
    The file called DependentLists3.xls shows both of these techniques in action.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Forum Contributor
    Join Date
    06-15-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2019
    Posts
    168

    Re: multiple dropdown list

    Jerry, I really like option 2 and 3, but have struggled with applying either one. Would you consider looking at what I've uploaded? It is part of a larger workbook so there are errors in some formula cells, but I do not believe it affects what we are doing here. It is narrowed down because the overall size is more than the allowed. The Yellow column in the range tab would be the primary dropdown; the green would be the second dropdown and the blue the third dropdown. I have the first and second working, but cannot get the third to work. I believe ultimately I would like to try the second option, but seems like I need to get by this step. Thanks for your consideration, Gary
    (all that said, and I cannot figure out how to upload my sample from here, any suggestions?)

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: multiple dropdown list

    Zip your file so that it less than 1mb.

    In the Quick Reply box below, click GO ADVANCED and use the paperclip icon to attach your workbook.

  8. #8
    Forum Contributor
    Join Date
    06-15-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2019
    Posts
    168

    Re: multiple dropdown list

    Thanks, I've learned now about the paper clip. Agian, thank you for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1