+ Reply to Thread
Results 1 to 4 of 4

Drop down menu depending on another drop down

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Massachusetts,US
    MS-Off Ver
    Excel 2010
    Posts
    44

    Drop down menu depending on another drop down

    So on column F there is a drop down menu which you can pick from but i want column h to be dependent on the information displayed on column F. So if I pick HYFOL 14 on column F. Then I will have the option of picking these
    110359P
    165679-U
    155011-U
    131653-U
    PLA0050133
    You can add tabs and columns. Thank You!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-28-2011
    Location
    Here
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Drop down menu depending on another drop down

    See the attached item.

    On the orders tab I've highlighted in yellow what I have added. (Column A Row 11 and Column B row 11)

    On the products page I also added in the indexing that you need to do to have the lists to be dependent. (Columns K:L)

    Also look at the name manager to see what was added in there.

    the uconnection and uproducts are what you use for the data validation reference.
    Now practice will allow you to understand it better!

    Hope this helps.
    Attached Files Attached Files

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

    Re: Drop down menu depending on another drop down

    1) highlight column A on the Formulas tab, then type PRODUCTS into the Name box, this gives a name to your sorted list in column A.

    http://screencast.com/t/MGpm2e5AX2gC

    That's the only named range you need. You can expand the data on this tab as much as you want, will keep working.

    2) On the Orders tab, click on H2 and open the Data Validation settings, and use this:

    Allow: List
    Source: =OFFSET(Products, MATCH($F2, Products, 0)-1, 1, COUNTIF(Products, $F2), )


    Don't worry if it gives an error, which it will if F2 is empty.

    3) Copy F2 downward.


    You're done. The cells in column H will have a list based on the choice made in column F of the same row.
    _________________
    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!)

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

    Re: Drop down menu depending on another drop down

    Oh, if you want to be able to keep using the column H to list more components without having to keep selecting values in column F, use this DV formula instead, it will create a list based off of the last value in column F up through that cell. To get a new list, you need only make a new column F selection.

    Source: =OFFSET(Products, MATCH(INDEX($F$1:$F2, MATCH("zzzz", $F$1:$F2, 1)), Products, 0)-1, 1, COUNTIF(Products, INDEX($F$1:$F2, MATCH("zzzz", $F$1:$F2, 1))), )

+ 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