+ Reply to Thread
Results 1 to 13 of 13

Dropdown, depening on other dropdown?

  1. #1
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Dropdown, depening on other dropdown?

    Is there somhowe I can restrict LVL 2 dropdown, based on LVL 1?

    So for instance, if they choose "1" from LVL 1, they'll only be able to choose from all the a's from DATA-sheet, and so on?

    DROPDOWNS.xlsx

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dropdown, depening on other dropdown?

    Assuming there are no spaces in the choices for Lvl1 (e.g. 1 doesn't = "Green cars") then name your 3 lvl2 lists by whatever 1,2, and 3 are in Lvl1.
    Then your data validation will be Lists = INDIRECT(E13)
    Questions?
    Attached Files Attached Files
    Last edited by ChemistB; 02-01-2016 at 01:22 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,277

    Re: Dropdown, depening on other dropdown?

    See attached (as an example)

    LVL 1 DV list changed to "A", "B" "C"

    Lvl 2 named ranges "LVLA", "LVLB", LVLC"

    for Data Validation for LVL 2

    =List

    source : =INDIRECT("LVL" & E13)
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dropdown, depening on other dropdown?

    Another option, since your question is a little vague, let's say the initial dropdown is 1,2 or 3

    Define Data!E13:G23 as MyData

    Your Lvl2 dropdown would be
    List = INDEX(MyData, 0, E13)
    See attachment
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: Dropdown, depening on other dropdown?

    Thanks guys.

    But what if the data not that "simple"

    LVL 1 can be 12 different sentences, LVL 2 100 of sentences in each dropdown

    Like LVL1 could be "Arm Ref"

    LVL 2 could then be a ton 2-5 word combos with no system at all

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,277

    Re: Dropdown, depening on other dropdown?

    Why provide a sample which is NOT representative of what you require?

    Please post a representative file of your data.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dropdown, depening on other dropdown?

    So let's say Level 1 dropdown is a list called Lvl1
    Then similar to post #4 but

    List = INDEX(MyData, 0, MATCH(E13, Lvl1,0))

  8. #8
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: Dropdown, depening on other dropdown?

    I'm sorry.

    I was hoping it would be the "same" solution, and I could see trough it. - and the book it's about has to much data in it to share. I've made this instead.

    So if they choose in A->B should be only C,E or G
    Last edited by horsefish01; 02-01-2016 at 05:29 PM.

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dropdown, depening on other dropdown?

    You lost me. So in Ark2, A2, I pick Ebs, Then in B2, What are my options and how does that relate to A2 (and why)?

    See attached. In this example, Lvl1 can be as complex as you want. If you choose the first choice, then on Lvl2 you choose from 1st column, 2nd choice, 2nd column and so on.

    If your dynamics are different (i.e. 1st 3 choices are first column, next 3 are second column and so on), formula can be adapted.
    Attached Files Attached Files
    Last edited by ChemistB; 02-01-2016 at 05:31 PM.

  10. #10
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: Dropdown, depening on other dropdown?

    Sorry - wrong edition
    -thanks for sticking with me!

    Drip.xlsx

    I'm looking at yours, and just cant get the same result! :-/

    Is it because of the gaps/columns between tables?
    Last edited by horsefish01; 02-01-2016 at 05:37 PM.

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dropdown, depening on other dropdown?

    Okay, the validation in Ark2 Column B beginning at B2

    =OFFSET('Ark1'!$B$3, 0, MATCH(A2, 'Ark1'!$C$2:$G$2,0), COUNTA(OFFSET('Ark1'!$B$3:$B$1000, 0, MATCH(A2, 'Ark1'!$C$2:$G$2,0))),1)
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dropdown, depening on other dropdown?

    My post from #9 will work except you have different ranges in different columns. This new formula takes care of that.

  13. #13
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: Dropdown, depening on other dropdown?

    Thanks a million buddy :D <3

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dropdown selections based on adjacent dropdown selected
    By mtvufg8r in forum Excel General
    Replies: 2
    Last Post: 11-07-2014, 12:25 PM
  2. Cull dropdown list options based on selection in another dropdown
    By Kiffar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2012, 01:53 AM
  3. [SOLVED] Cascading dropdown lists all tied to first dropdown
    By ruthl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2012, 08:03 PM
  4. Clearing Dropdown content based on value of another dropdown
    By JonathonHardy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-31-2011, 10:14 AM
  5. Replies: 2
    Last Post: 08-11-2011, 01:32 AM
  6. populating a dropdown based on choice from a previous dropdown
    By Conor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2006, 03:20 PM
  7. offer dropdown options based on another dropdown
    By Conor in forum Excel General
    Replies: 2
    Last Post: 01-13-2006, 12:28 PM

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