+ Reply to Thread
Results 1 to 6 of 6

Help with Dynamic Validation Lists / Drop Downs / dynamic filters

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    45

    Help with Dynamic Validation Lists / Drop Downs / dynamic filters

    Hi All,

    I have a 5 different variables that i want to build in to validation lists / drop downs.
    The issue that i am facing is that certain dependent variables do not return results for the independent variable. Ideally the solution im looking for is for each of the lists to be dynamic, therefore only if a result is available that i want the validation list to only show those that have a result.

    I have created a sheet to show how the lists work and the dependencies on each.

    Any assistance would be great!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help with Dynamic Validation Lists / Drop Downs / dynamic filters

    Hi,

    For anything to do with dependent drop down lists I can do no better than refer you to Debra's site on this subject here
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Help with Dynamic Validation Lists / Drop Downs / dynamic filters

    Hopefully sheet 2 in the attached does what you want.

    Cols A - E set the contents of the five initial DropLists as Ranges by clicking each selection in turn, clicking "Formula", choosing "Create from selection", and ticking "Top Row"

    Cols G - P then lists the "Dependent" ranges as mapped in your Sheet 1. As an example, copying D3 to H4 on sheet 2, selecting Data and using "Text to Columns" created the list in H4 - O4.

    You then repeat the Range Name process for each row, except in "Create from Selection", you tick "Left Column" instead of "Top Row"

    Because the "Dependent" ranges are now linked to the contents of the five Drop Lists, you set the main Drop Lists in T2 - T10, and in U2 - U10 create subsidiary Data Validation as "indirect"

    (e.g., U6 will be =indirect("T6") and only the letters linked to that Col T choice will appear in the Dependent drop box.

    One thing I found unclear is Col B in the Sheet 1 structure?

    Ranges c - l are colour-coded as Dependants of DropDown1, but the label sets them as a DropList in their own right.

    But they then appear as Dependants of DropDown3 as well?

    Hope that helps

    Ochimus
    Attached Files Attached Files
    Last edited by Ochimus; 05-21-2016 at 10:08 AM.

  4. #4
    Registered User
    Join Date
    10-11-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Help with Dynamic Validation Lists / Drop Downs / dynamic filters

    Quote Originally Posted by Ochimus View Post
    Hopefully sheet 2 in the attached does what you want.

    Cols A - E set the contents of the five initial DropLists as Ranges by clicking each selection in turn, clicking "Formula", choosing "Create from selection", and ticking "Top Row"

    Cols G - P then lists the "Dependent" ranges as mapped in your Sheet 1. As an example, copying D3 to H4 on sheet 2, selecting Data and using "Text to Columns" created the list in H4 - O4.

    You then repeat the Range Name process for each row, except in "Create from Selection", you tick "Left Column" instead of "Top Row"

    Because the "Dependent" ranges are now linked to the contents of the five Drop Lists, you set the main Drop Lists in T2 - T10, and in U2 - U10 create subsidiary Data Validation as "indirect"

    (e.g., U6 will be =indirect("T6") and only the letters linked to that Col T choice will appear in the Dependent drop box.

    One thing I found unclear is Col B in the Sheet 1 structure?

    Ranges c - l are colour-coded as Dependants of DropDown1, but the label sets them as a DropList in their own right.

    But they then appear as Dependants of DropDown3 as well?

    Hope that helps

    Ochimus
    Thanks Ochimus, sorry i wasnt more clear, basically what i want to achieve is, if i select b in the first drop down, i only want to see g / h / i / j / k / l, if i then select 'k' in the second drop down, i only want to see m / o / p in the 3rd drop down, if i then select 'p' in the 4th drop down, i only want to see x / y. If i select 'y' then the only option i want to see is ar / as. Does that make sense?

  5. #5
    Registered User
    Join Date
    10-11-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Help with Dynamic Validation Lists / Drop Downs / dynamic filters

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    For anything to do with dependent drop down lists I can do no better than refer you to Debra's site on this subject here
    Thanks Richard, i will be sure to look at this.

  6. #6
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Help with Dynamic Validation Lists / Drop Downs / dynamic filters

    rjnc,

    Explanation clarified everything.

    Attached rework does what you need.

    Top of sheet shows which letters are linked to which, and how they cascade to next level.

    So in Box 1 you choose A or B (as before), which then sets the contents of DropBox 2.

    If you chose "a" originally, DropBox 2 will contain c - f.

    Cols C - F then show you what you get against each of those second choices.

    If you chose "b", DropBox2 will contain g - l, and Cols I - N show those choices.

    If you click on Name Manager under Formula. you will see every column is set as a "Named" range.

    Each dependent DropList can therefore use =Indirect("C. . "), meaning it looks in Row 2 for whatever letter is in the DropList above, and adds the letters in that "range".

    Ochimus
    Attached Files Attached Files
    Last edited by Ochimus; 05-23-2016 at 09:14 AM.

+ 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. [SOLVED] Using a dynamic Chart with checkboxes AND drop downs
    By af25 in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 10-21-2014, 12:44 AM
  2. multiple dynamic dependent drop downs
    By atomicrabbit in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2014, 10:54 PM
  3. Dynamic Chart with multiple drop downs vba code
    By freakdrumx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2013, 05:35 AM
  4. Replies: 7
    Last Post: 11-30-2012, 01:23 PM
  5. [SOLVED] need a dynamic source for data validation drop down lists
    By dredwolf in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2012, 11:01 PM
  6. [SOLVED] Dynamic dependant VBA drop downs
    By questionguy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-10-2012, 04:20 PM
  7. [SOLVED] Data validation drop downs don't recognize dynamic named range
    By GlenC in forum Excel General
    Replies: 0
    Last Post: 07-19-2006, 01:30 PM

Tags for this Thread

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