+ Reply to Thread
Results 1 to 27 of 27

Multi Drop Down Lists & Duplicate Values

  1. #1
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Multi Drop Down Lists & Duplicate Values

    Hi guys, everyone here has been so helpful with my project, was hoping for a bit more help.

    I am making a data file CSV for my clothing inventory. Trying to make a multi-drop down menu based on vlookup of the previous drop-down menu.

    Getting a bit stuck, in down down menu 3, only the boys values should be showing but both genders are...

    Even on drop down menu 2, both clothing & accessories, shoes, swimwear selections are showing.
    multi-list attempt.xlsx
    I am trying to have it only show values for genders, say clothing & accessories > boys > (then only show briefs, boxers, man-thongs).

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

    Re: Multi Drop Down Lists & Duplicate Values

    Okay, might as well get the whole picture rather than go at this piecemeal. In your final spreadsheet, would there be a column between boys/girls (G) and full list (H) which would say Clothing & Accessories, Shoes, or Swimwear on each line?
    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 Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    Not sure I follow, columns E-H are for vlookup purposes for the drop-down menus.

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

    Re: Multi Drop Down Lists & Duplicate Values

    Okay, seems you have an incorrect way of the way VLOOKUP works and its limitations.
    For dropdowns 1 and 2, you have it referring to E and F, which is fine.

    Then for dropdown 3, you simply reference column H.(H3:H8). What makes you think Excel will know to link this to what's in K13 and L13? Also, what is the logic that Excel will use to determine what in column H is swimwear, clothing, or shoes?

    You are looking for a 3 deep dependent dropdown box. Do you know how to use defined names? I need to get an idea of where to start.

    PS: There is no VLOOKUP on your worksheet.

  5. #5
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    Negative, I do not know how to use defined names..

    If you could put it in an excel sheet I can usually figure it out though.

    Lets say there are is an item category (clothing & accessories), 2 genders, 4 sub-categories of gender

    Clothing & accessories/girls/bras
    Clothing & accessories/girls/panties
    Clothing & accessories/girls/thongs
    Clothing & accessories/girls/g-string-divas
    Clothing & accessories/Boys/briefs
    Clothing & accessories/Boys/boxers
    Clothing & accessories/Boys/man-thongs

    So if I select boys, then only briefs, boxers, man-thongs should be the available selections in the next drop down.

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

    Re: Multi Drop Down Lists & Duplicate Values

    maybe it will help

    Copy of multi-list attempt-1.xlsx


    (sorry about rules but Data Validation lists has one function INDIRECT() and hard to explain here how to do it)

  7. #7
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    Mmm you lost me from #1, define all lists... lol...

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

    Re: Multi Drop Down Lists & Duplicate Values

    there is description how to do it
    first you need define (vertical) list, like: (I said define? OK, create will be better?)
    boys
    girls
    and next list, like:
    clothing_B (clothing for boys)
    shoes_B (shoes for boys)
    etc...

    your data should be organized correctly first so next steps are much much easier
    Last edited by sandy666; 01-19-2016 at 09:39 PM.

  9. #9
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    Lol....

    Still not following, can you fill that part in for me?

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

    Re: Multi Drop Down Lists & Duplicate Values

    which part?
    I don't see any xlsx...

  11. #11
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    Basically what fields you are trying to build the list for #1 and under what value.

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

    Re: Multi Drop Down Lists & Duplicate Values

    hm, I don't know, you should know because you've the list (lists).
    sorry about what I will write now
    1. open NEW worksheet
    2. take very basic list (mine is FList, Gender could be yours)
    3.
    A1: GENDER (this is header)
    A2: girls (yellow)
    A3: boys (green)

    second list: (note colours)
    4.
    B1: girls (yellow - header)
    B2: clothing_g (orange, cloth for girls)
    B3: shoes_g (orange, shoes for girls)
    B4: swimwears_g (orange, swimw. for girls)

    break:
    note: in A1 you've girls as position on list (yellow) but in next column B this is exactly the same name: girls - will be as header in B1 (yellow)
    do the same with a boys (green) A3: boys (green) is a position on the list but in next next column C it will be a header in C1 (green)

    positions from first list (vertical) (without header) are headers (horizontal) in the next columns.
    means: yellow vertical is a yellow horizontal in the next column (in example you've two but there can be more)

    three colours = three list

    more?

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

    Re: Multi Drop Down Lists & Duplicate Values

    correction: new workbook, not worksheet, will be easier with named ranges

  14. #14
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Multi Drop Down Lists & Duplicate Values

    Try simple thing.
    Use this formula in Data Validation of dropdown 3:
    =IF($L$13="boys",$H$3:$H$5,$H$6:$H$8)
    Quang PT

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

    Re: Multi Drop Down Lists & Duplicate Values

    bebo,
    what if boys will change to boyz? it will not be changed automatically
    and next what about more than, say: 5 lists?
    now I can manage lists and names from one range

  16. #16
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Multi Drop Down Lists & Duplicate Values

    Quote Originally Posted by sandy666 View Post
    bebo,
    what if boys will change to boyz? it will not be changed automatically
    and next what about more than, say: 5 lists?
    now I can manage lists and names from one range
    I follow the original post #1, with boys/girls in dropdown2.

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

    Re: Multi Drop Down Lists & Duplicate Values

    Ok, no problem

  18. #18
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    Yep so lets give this another try lol..

    Made a new spreadsheet that might explain it a little better. The values of drop down #3 must be defined by the choice of category in drop down 1, then gender in drop down 2
    Attached Files Attached Files

  19. #19
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    May be best to break it down on the spread sheet I attached.

  20. #20
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Multi Drop Down Lists & Duplicate Values

    Here you go............
    Attached Files Attached Files

  21. #21
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    Yep so that is what I am looking for, though I am not sure how you got only the girl values to show in drop down #3. I was hoping show formulas would have revealed this!

    I did replicate the same outcome for the row below the one you had filled in using =vlookup(d15,g:h,2,false) which was the same formula I first started with that would not work. So I am not sure what I had been doing wrong lol.

  22. #22
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Multi Drop Down Lists & Duplicate Values

    Try to hit F3 to see where the validation come from.

  23. #23
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    Ah a bit stuck again. Trying to apply this concept to a new list, but I get stuck on the gender specific values showing up in drop down #3.

    What command are you using to specify that only that items tied to the gender of drop down #2 are showing up?

  24. #24
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Multi Drop Down Lists & Duplicate Values

    Stay in cell E3 (dropdown 3), Ctrl-F3, Name List, Edit, Copy formula out and paste it in any availabla cell, you can see:

    =OFFSET(Sheet1!$H$1,MIN(IF(IF(Sheet1!$F$2:$F$11=Sheet1!$C14,IF(Sheet1!$G$2:$G$11=Sheet1!$D14,Sheet1!$H$2:$H$11,""),"")="","",ROW(Sheet1!$H$2:$H$11)-MIN(ROW(Sheet1!$H$2:$H$11))+1)),,MAX(IF(IF(Sheet1!$F$2:$F$11=Sheet1!$C14,IF(Sheet1!$G$2:$G$11=Sheet1!$D14,Sheet1!$H$2:$H$11,""),"")="","",ROW(Sheet1!$H$2:$H$11)-MIN(ROW(Sheet1!$H$2:$H$11))+1))-MIN(IF(IF(Sheet1!$F$2:$F$11=Sheet1!$C14,IF(Sheet1!$G$2:$G$11=Sheet1!$D14,Sheet1!$H$2:$H$11,""),"")="","",ROW(Sheet1!$H$2:$H$11)-MIN(ROW(Sheet1!$H$2:$H$11))+1))+1)

    Adjust the range of F,G,H to adapt your actual range
    Note: F and G column are always sorted.

  25. #25
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    Yea.... Thinking there is an easier way than to go through that formula and start replacing values.

  26. #26
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Multi Drop Down Lists & Duplicate Values

    Use Find and Replace (Ctrl-H) to replace $11 with,i.e, $20

  27. #27
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Multi Drop Down Lists & Duplicate Values

    Okay for this example yet. But on the fly what is the proper way to define the values of the previous selection

+ 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] Multi Level Dependent Drop Down Lists
    By mysticmoron109 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-03-2015, 03:35 PM
  2. Duplicate, Dependent/Related/Interconnected Data Validation (Drop Down Lists)
    By dilbert1865 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2014, 10:51 AM
  3. [SOLVED] Return non-duplicate values from 2 lists
    By Darkonius in forum Excel General
    Replies: 4
    Last Post: 08-12-2013, 02:41 PM
  4. Multiple Drop Down Lists from a single multi row sheet
    By betsyparsons in forum Excel General
    Replies: 0
    Last Post: 09-14-2012, 04:38 PM
  5. Non-duplicate drop-down list and non blank lists
    By crutchees in forum Excel General
    Replies: 1
    Last Post: 07-22-2010, 08:41 AM
  6. How to use any formula with multi-select or drop down lists?
    By heatham in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-06-2010, 05:07 PM
  7. [SOLVED] Unique Values Between Two Multi-Column Lists.
    By Intern Ian in forum Excel General
    Replies: 0
    Last Post: 11-09-2005, 05:10 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