+ Reply to Thread
Results 1 to 22 of 22

Create dependent list

  1. #1
    Registered User
    Join Date
    12-08-2016
    Location
    erie, pa
    MS-Off Ver
    2016
    Posts
    17

    Create dependent list

    I am looking to create a series of drop down lists that are dependent on each other. I cant seem to eliminate duplicates in the list either. A user will choose a "Brand Name", which will activate the next drop down "Product line", which will activate the next drop down "Model #", which will return the appropriate bolt pattern. Any help is much appreciated. I am doing this for a senior project.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Create dependent list

    Have not (yet) looked at your file, but the attached example does what you want. It uses names ranges for all levels and sub-levels, and then uses INDIRECT to return the items needed. See if you can adapt it to your needs - if not, give me a shout
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-08-2016
    Location
    erie, pa
    MS-Off Ver
    2016
    Posts
    17

    Re: Create dependent list

    The file has 180 rows. The 1st list only has 5 names that should be in the list, but I cant remove the duplicates

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Create dependent list

    see Create Dependent Drop Down Lists

    Sorry Ford, I'm interrupting
    Last edited by sandy666; 03-30-2017 at 01:34 AM.

  5. #5
    Registered User
    Join Date
    12-08-2016
    Location
    erie, pa
    MS-Off Ver
    2016
    Posts
    17

    Re: Create dependent list

    I can make the dependent drop downs, but the 1st main list shows 180 items, when in reality there are only 5. I cant separate out the items that are repeated in the list.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Create dependent list

    There is a few ways to do it, first: copy original list to first "free" column, use DATA ==> Data Tools ==> Remove Duplicates and use this list
    or
    use this one (for the firsrt column of your example) =INDEX($A$3:$A$182,MATCH(0,COUNTIF($F$4:F4,$A$3:$A$182),0)) confirm by Control+Shift+Enter and drag down as far as you see #N/A
    Last edited by sandy666; 03-30-2017 at 01:47 AM.

  7. #7
    Registered User
    Join Date
    12-08-2016
    Location
    erie, pa
    MS-Off Ver
    2016
    Posts
    17

    Re: Create dependent list

    did you get a chance to look at the file I uploaded? If I go that route, will I still be able to narrow it down to my final objective of displaying the "bolt pattern"

    Edit: So when I choose "Okuma" on my 1st drop down, I want only the "Okuma" "Product Line's" to be available in the 2nd drop down, and so on and so on
    Last edited by jra81882; 03-30-2017 at 01:49 AM.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Create dependent list

    Im not going to create your lists for you.

    1. Create a list of all Brands
    2. Create a list of all lines
    3. Create a list of all model numbers
    Not sure if you need to create a list of all patterns, that might be the output you want

    Do that, and we can take another look at your file

    Sandy, go for it, I have no problem with other members answering on a thread

  9. #9
    Registered User
    Join Date
    12-08-2016
    Location
    erie, pa
    MS-Off Ver
    2016
    Posts
    17

    Re: Create dependent list

    Yes i get a #N/A when I use that Index function, but im very confused as why to use that. I should use that Index function in cell F3?

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Create dependent list

    look at Lists Tab with unique lists
    the rest is up to you
    see att.
    Attached Files Attached Files

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Create dependent list

    Sandy, you have probably already done some of this?

    jra, this is what I meant - I have made a start for you and created the 1st 2 levels, you now need to create the 3rd level for each 2nd-level item
    K
    L
    M
    N
    O
    P
    2
    Okuma Mazak Daewoo Mori Seki Haas
    3
    Okuma Cadet Nexus BMT CL ST
    4
    Mazak Captin QT Lynx ZL DS
    5
    Daewoo ESL Bridgeport TT DT SL
    6
    Mori Seki Heritage QTN Puma SL HT
    7
    Haas LB SQT Doosan VL TL
    8
    LU Romi ZT
    9
    Crown Dual Turn Duraturn
    10
    L Duplomatic NLX
    11
    Genos Smart Frontier
    12
    LC Slant TL
    13
    LFS Samsung
    14
    H MSL
    15
    HB NT
    16
    NZ
    17
    DURA
    18
    NL
    19
    Feeler

  12. #12
    Registered User
    Join Date
    12-08-2016
    Location
    erie, pa
    MS-Off Ver
    2016
    Posts
    17

    Re: Create dependent list

    Thank you Sandy and Ford. I guess im just very confused with how to filter out only the Okuma product lines when Okuma is chosen from the list. hahahaha i thought i was pretty good at excel until i came across this problem....

  13. #13
    Registered User
    Join Date
    12-08-2016
    Location
    erie, pa
    MS-Off Ver
    2016
    Posts
    17

    Re: Create dependent list

    ahhhhh i see. Do i create a seperate table for each 3rd level item and then repeat for the 4th level?

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Create dependent list

    Quote Originally Posted by jra81882 View Post
    ahhhhh i see. Do i create a seperate table for each 3rd level item and then repeat for the 4th level?
    yes, you do - and from the looks of it, that is going to be a fairly tedious job for *you*

    I have made a start with the 1st 2 dropdowns for you
    (love the big pond you guys have up there by the way, visited there a few years ago in the winter, awesome ice waves *i think they call them?*)
    Attached Files Attached Files

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Create dependent list

    Ford, I did almost everything (to second level) but I think OP should read your example file again or Contexture site.
    Solution with Names is fast and good I think

  16. #16
    Registered User
    Join Date
    12-08-2016
    Location
    erie, pa
    MS-Off Ver
    2016
    Posts
    17

    Re: Create dependent list

    Thank you, much appreciated! Erie, is a bitter cold place to visit in the winter! Along the coast, ice dunes are formed. They are actually very dangerous to walk on because they are normally hollow in the middle. Common occurrence for climbers to fall through!

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Create dependent list

    Ice dunes, yes that was it, very strange looking things.

  18. #18
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Create dependent list

    But I think there is no need to duplicate the built-in feature.
    1. Click on Brand Name
    2. Go to DATA=>Sort&Filter=>Filter
    3. Select from Brand Name any brand
    4. then select from the Product Line - product
    5. etc...
    6. to back to the full table, simply un-click Filter on DATA Tab

    You save time and work

  19. #19
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Create dependent list

    Sandy, while I would agree with you, by creating a drop down, you give the ability for newbie users to select items, and to avoid typos and make sure they only select specific items

  20. #20
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Create dependent list

    For me, IMHO, Filter feature is more flexible than creating DV lists but this is users's choice

  21. #21
    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,300

    Re: Create dependent list

    See attached:

    I created named ranges for Product Line and Model Number for each Brand

    I then created two dynamic ranges to return Product Line (PL) and Model Number (MN) for the selected Brand

    In Sheet2

    For PL

    =IFERROR(INDEX(INDIRECT(SUBSTITUTE(Okuma!$F$3&"_PL"," ","_")),MATCH(0,COUNTIF($B$1:B1,INDIRECT(SUBSTITUTE(Okuma!$F$3&"_PL"," ","_"))),0)),"")

    For MN

    =IFERROR(INDEX(INDIRECT(SUBSTITUTE(Okuma!$F$3&"_MN"," ","_")),SMALL(IF(INDIRECT(SUBSTITUTE(Okuma!$F$3&"_PL"," ","_"))=Okuma!$G$3,ROW(INDIRECT(SUBSTITUTE(Okuma!$F$3&"_PL"," ","_")))-ROW(INDEX(Brand_Name,MATCH(Okuma!$F$3,Brand_Name,0)))+1,""),ROWS($1:1))),"")

    Enter both with Ctrl+Shift+Enter

    On Sheet1

    Brand, Product Line and Model Number are Data Validation List

    Bolt Pattern uses ..

    =VLOOKUP($H$3,Okuma!$C$3:$D$182,2,0)

    This assumes that for a given Model Number (within Brand) the Bolt Size is the same
    Attached Files Attached Files

  22. #22
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Create dependent list

    Hi

    You can use Aggregate formula in Lists sheet as you are on MS 2016?

    Okuma Sheet you can add on or remove stock up to 500 rows?
    If need more than 500 rows? Just change formula 500 to 1000 then copy down

    See the files

    Regards
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

+ 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. Create a dependent drop down list
    By nancyching1711 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-29-2015, 12:44 AM
  2. Create Dependent Drop Down List
    By ININ1994 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-12-2014, 02:35 PM
  3. Create a dependent drop down list with dynamic list
    By JSmith1504 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-01-2014, 09:15 AM
  4. [SOLVED] How to create third dependent dropdown list?
    By kyawzw in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-26-2012, 02:05 AM
  5. Replies: 2
    Last Post: 08-27-2012, 05:04 PM
  6. [SOLVED] Create 2 Dependent List.
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-27-2012, 04:57 AM
  7. How do I create a dependent list, to a current list?
    By elevenphil in forum Excel General
    Replies: 1
    Last Post: 01-30-2006, 12:40 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