+ Reply to Thread
Results 1 to 8 of 8

Dependent Dropdowns

  1. #1
    Registered User
    Join Date
    09-13-2019
    Location
    nowhere
    MS-Off Ver
    2016
    Posts
    4

    Question Dependent Dropdowns

    Hello,

    I am trying to create a dependent drop down. I have searched around and used multiple examples and have came close but still end up with the duplicate values in the second drop down.

    Hopefully I can make this clear enough what I am trying to do.

    So this is the data I am working with;

    Data.PNG

    Here is the drop downs I have;

    Drop Downs.PNG

    So what I am trying to do is have each Year / Make / Model / Bed size drilled down from each of the previous drop downs.

    For example only the 2020 Year would show a Make of GMC and Chevy and a Model of Colorado,Silverado, and Canyon.

    Hopefully that makes sense.

    I am using Excel 2016.
    Attached Files Attached Files
    Last edited by cr130; 09-13-2019 at 05:10 PM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Dependent Dropdowns

    Why not use slicer?

    If you select year, then all other slicer will show only values available for that year.

    If you need dropdown. You can easily create it by using hidden slicer sheet, and linking it to filter field only pivot table(s).

    Alternately, you can do it via formula based list sheet set up.


    If you need more help. I'd recommend uploading sample file and not just the image.

    To upload, use "Go Advanced" button, follow "Manage Attachments" hyperlink. It will open new tab/window for managing uploads.
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    09-13-2019
    Location
    nowhere
    MS-Off Ver
    2016
    Posts
    4

    Re: Dependent Dropdowns

    I am not that good at Excel but did dip into slicer but had a harder time with it. I have been using a drop down with formulas with not a whole lot more luck. I have added the document now.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Dependent Dropdowns

    Ah, I see.You want to use your selection in calculation. That's bit difficult to do with slicer, unless you use OLAP based pivot tables and use CUBE functions.

    I'll see if I have time to whip up formula based one.

  5. #5
    Registered User
    Join Date
    09-13-2019
    Location
    nowhere
    MS-Off Ver
    2016
    Posts
    4

    Re: Dependent Dropdowns

    Thank you CK76, I appreciate the help!

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Dependent Dropdowns

    Here you go.

    Notes:
    1. This is one directional. I.E. dependency can only flow from Year -> Make -> Model -> Size. And removing Year, once you select Make, will not invalidate selection already made in Make etc.
    2. I sorted your Data based on Year. To keep formula relatively simple and to show year dropdown from earliest to latest.

    To extract distinct year values:
    =IFERROR(LOOKUP(2,1/(COUNTIF($A$1:A1,Table13[Year])=0),Table13[Year]),"")

    To extract distinct make, based on year. (If year isn't selected, it will show all available make)
    =IFERROR(IF(Templates!$A$2="",LOOKUP(2,1/((COUNTIF($C$1:C1,Table13[Make])=0)),Table13[Make]),LOOKUP(2,1/((COUNTIF($C$1:C1,Table13[Make])=0)*(Table13[Year]=Templates!$A$2)),Table13[Make])),"")

    Same principle applies to rest of lists.

    Then dynamic named ranges added and used to supply list to data validation.

    See attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-13-2019
    Location
    nowhere
    MS-Off Ver
    2016
    Posts
    4

    Re: Dependent Dropdowns

    thank you! you are awesome!

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Dependent Dropdowns

    You are welcome and thanks for the rep

+ 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] Dependent Dropdowns with Values
    By scottaz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-27-2015, 06:33 PM
  2. Dependent Dropdowns
    By ea223 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2015, 12:33 PM
  3. [SOLVED] Dependent Dropdowns
    By Meabh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2015, 08:11 AM
  4. Help with Dependent Dropdowns
    By brentlindeman in forum Excel General
    Replies: 1
    Last Post: 01-28-2014, 07:30 PM
  5. [SOLVED] Dependent Dropdowns, clearing dependent value when parent value changes
    By ptmald in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2013, 01:52 PM
  6. Dependent dropdowns
    By Jogier505 in forum Excel General
    Replies: 5
    Last Post: 12-30-2009, 08:39 PM
  7. 3+ Dynamic Dependent dropdowns?
    By KD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2006, 01:15 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