+ Reply to Thread
Results 1 to 23 of 23

2 specific secondary drop down lists can be chosen after chosen specific option in primary

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Lightbulb 2 specific secondary drop down lists can be chosen after chosen specific option in primary

    I want to make a combination of drop down lists like below in Excel. Please help! Thanks

    Scenario1 -
    In Cell A1 (drop down of Main list): I choose "Item A".
    In Cell B1: I can choose "Upper Part I" or "Upper Part II" which is Sub list#1 for Item A.
    In Cell C1: I can choose "Lower part I" or "Lower part II" which is Sub list#2 for Item A.

    Scenario2 -
    In Cell A1 (drop down of Main list): I choose "Item B".
    In Cell B1: I can choose "Upper Part K" or "Upper Part J" which is Sub list#1 for Item B.
    In Cell C1: I can choose "Lower Part P" or "Lower Part Q" which is Sub list#2 for Item B.


    Main list:
    Item A
    Item B

    Sub list#1 for Item A:
    Upper Part I
    Upper Part II

    Sub list#2 for Item A:
    Lower Part I
    Lower Part II

    Sub list#1 for Item B:
    Upper Part K
    Upper Park J

    Sub list#2 for item B:
    Lower Part P
    Lower Part Q

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Hi,

    Instructions on how to do what you are trying can be found at:

    http://www.contextures.com/xlDataVal02.html

    HTH
    Steve

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Quote Originally Posted by SteveG View Post
    Hi,

    Instructions on how to do what you are trying can be found at:

    http://www.contextures.com/xlDataVal02.html

    HTH
    Steve
    Hi Steve,

    Thanks for reply, but the link you forwarded doesn't help my question.

    Can you read my case again?

  4. #4
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Hi,

    The site I sent you has all the information needed to do what you want. You need 2 dependent drop downs. When I have a few minutes I'll send a sample workbook. The site, however, has a video turorial which is good if you can't wait.

    Steve

  5. #5
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Quote Originally Posted by SteveG View Post
    Hi,

    The site I sent you has all the information needed to do what you want. You need 2 dependent drop downs. When I have a few minutes I'll send a sample workbook. The site, however, has a video turorial which is good if you can't wait.

    Steve
    Thanks Steve,

    But your link isn't fully resolve my problem. I know how to create data validation dependent lists that is only one to one relationship, or cascaded one-to-one-to-one relationship, however mine is a one to two relationship.

    That means I have to choose one specific option in the primary drop down list, then the two secondary drop down lists will show the sub-information of that specific result in the primary drop down.

  6. #6
    Registered User
    Join Date
    05-31-2012
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010 (Mac)
    Posts
    11

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    If you create named lists you can reference them using the INDIRECT function, which it seems like you already know.

    What I would recommend for sub list 2 is to include an IF statement or VLOOKUP, depending on how many options you need to choose.

    Example:

    Create two lists, one called BOX2A, which includes LOWER PART I and LOWER PART 2 and one called BOX2B, which includes LOWER PART P and LOWER PART Q.

    In the data validation for your second drop-down use formula that references those list names based on what is in the main menu.

    =INDIRECT(IF(A1="Item A","BOX2A",IF(A1="Item B","BOX2B","")))

    Or you can create a table of list names that should be associated with each specific Item in the main menu, which would be more efficient if you have several items in the main menu.

    =INDIRECT(VLOOKUP(A1,G1:H5,2,FALSE))

    G1:H5 being where your table is located, 2 being the column within the table where the names for the appropriate lists for the 2nd dependent box are found.

    Here's a video that covers using the INDIRECT function for the first part of what you'll need to do http://www.youtube.com/watch?v=0Ey8-ILjjYs

  7. #7
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Hi,

    Here is a workbook that shows tonalqualityx's suggestions using the INDIRECT function.

    HTH
    Steve


    2 Dependent Drop Downs.xlsx

  8. #8
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Quote Originally Posted by SteveG View Post
    Hi,

    Here is a workbook that shows tonalqualityx's suggestions using the INDIRECT function.

    HTH
    Steve


    Attachment 159055
    Thanks Steve! This is nice. The excel with IF station inside INDIRECT function works well, however I actually have many entries (more than 100) under Main list, therefore I have many sub-lists (around 50 each) and there are many entries under each sub-lists. It's painful to maintain such a long IF statement and there will be new entries to be added to these lists. Also there's a limitation of excel that max. 32 nested IF statements. So ultimately IF statement inside INDIRECT function won't work.

    Can you make one excel sample using vlookup inside the INDIRECT function as mentioned by tonalqualityx? Or any better solution to handle many lists and many entries in the lists? Thanks!
    Attached Files Attached Files
    Last edited by ohlalayeah; 06-01-2012 at 04:54 AM. Reason: for better explanation

  9. #9
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Thanks tonalqualityx!
    Last edited by ohlalayeah; 06-01-2012 at 03:06 AM.

  10. #10
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Hi,

    Attached is a file using the OFFSET and MATCH functions instead of a VLOOKUP. This will enable you to have a large list of Sub1 and Sub2 using the item (Item A, Item B etc...) in the match and a countif to determine the return for the drop downs.

    HTH
    Steve

    Dependent Drop Downs2.xlsx

  11. #11
    Registered User
    Join Date
    05-31-2012
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010 (Mac)
    Posts
    11

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    I like that. I never would have thought of using OFFSET & MATCH. I use VLOOKUP all the time, so it's usually my go to formula for stuff like this. Anyway, here's a link to a video that uses Ohlalayeah's scenarios with the VLOOKUP.
    http://www.youtube.com/watch?v=0kYzmBncec4

  12. #12
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Thanks! Can you make an excel file as sample pls?
    Last edited by ohlalayeah; 06-01-2012 at 07:33 PM.

  13. #13
    Registered User
    Join Date
    05-31-2012
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010 (Mac)
    Posts
    11

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Quote Originally Posted by ohlalayeah View Post
    Yes, this looks good and is able to solve my problem. Can you make an excel file for me as a sample? ^^ Thanks!
    Here it is... hope it's what you need :-).
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Let me attach my file here.

    I don't know why the second one doesn't work, Cells D20 and F20 on the front worksheet are the secondary drop down lists, but don't know why they are failed. Can you help fiixing it?

  15. #15
    Registered User
    Join Date
    05-31-2012
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010 (Mac)
    Posts
    11

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    I'm having some trouble viewing it (my excel gets funky sometimes, I need a reinstall, but I dont have the disc). Anyway, it looks like your data validation isn't set to "List" in the section that isn't working? Could be my excel chopping it up though.

  16. #16
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    my primary list is on the worksheet "zList-General" under Column D; secondary lists are on worksheet "z69LSizeChart" columns E-R, the list for vlookup is under columns B-D.

    Thanks!

  17. #17
    Registered User
    Join Date
    05-31-2012
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010 (Mac)
    Posts
    11

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Hmm.. I thought I just submitted a reply to this, but it didn't seem to post. Anyway, if you own a mac we could screen share through google chat. Might work if you don't own a mac, but I'm not sure. I see where everything is now, but I'm not following how it's supposed to fit together.

  18. #18
    Registered User
    Join Date
    05-31-2012
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010 (Mac)
    Posts
    11

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Also, it looks like in your VLOOKUP range your list names are incorrect. These should be exactly what you named the lists they correspond to. Also, the cell being referenced by the data validation (O16) is not in the lefthand column of your VLOOKUP range at all. This could be my excel chopping something up though...

  19. #19
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Thanks! Do you mind fixing my excel file and attach here? Sorry, I am too stupid.

  20. #20
    Registered User
    Join Date
    05-31-2012
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010 (Mac)
    Posts
    11

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    You're not stupid. It's a pretty involved sheet... I'm actually a bit uncertain still how all the pieces fit together.

    I think I'm beginning to understand how it fits together... The names you've given your lists in z69LSizeChart could be shortened to match what is in 016. For example STL2101OT_otherstuff could lose the underscore and everything following it. Then your list names will match exactly the data in O16. Next, you can copy the formula from O16 into the data validation for D20 and surround it with an INDIRECT statement.

    It should look something like this:
    =INDIRECT(CONCATENATE(LEFT(D16,2),(MID(D16,4,7))))

    Once your list names are updated to match you should be good to go, and can even eliminate O16.

  21. #21
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    sorry, i don't get it. do you mind modifying my file and upload here pls? Many Thanks!!


    I highlight the 3 drop down lists for your reference. Thanks
    Last edited by ohlalayeah; 06-01-2012 at 09:51 PM.

  22. #22
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    I finally done! Thanks for your help so much so much!

  23. #23
    Registered User
    Join Date
    05-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: 2 specific secondary drop down lists can be chosen after chosen specific option in pri

    Can you help me once more? I don't know why cell F20 (the first worksheet of my attached excel) doesn't work. I want the excel output a value referring to the Pantone code for the corresonding primary size on 69LSizeChart worksheet, after I have chosen D16 and D20 on the first worksheet.

+ 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