+ Reply to Thread
Results 1 to 8 of 8

Data Validation Lists - Separate dropdowns created from table

  1. #1
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Data Validation Lists - Separate dropdowns created from table

    Hello All,

    I am trying to help out a friend who works in manufacturing. The model being manufactured contains 5 parts that can have different choices of materials for each. My friend needs a dropdown for each part so he can choose which material to use for that part. Some of these materials can be used on multiple parts (refer cells A1:I6 in attached WB) for e.g. Material H can be used on parts #3-#5 but not on parts #1 or #2.

    I need to create 5 separate data validation lists - 1 unique dropdown for each part - using the table (cells A1:I6) in the attached WB. I can't think of a way to create these dropdowns using formulas so that they only include the materials marked TRUE for that particular part (e.g. dropdown for Part #5 should only allow materials C & H. dropdown for Part 3 should only allow E, F & H).

    Can anyone please help me out? Thanks.
    Attached Files Attached Files
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation Lists - Separate dropdowns created from table

    With this layout, you can enter as many values in column A that you wish, the column H drop downs will expand themselves.

    Then put the appropriate number of entries in B:C so the data validation in column I can lookup the range of rows on its own.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Data Validation Lists - Separate dropdowns created from table

    Great. Thank you! I'll try out over the weekend and let you know how it goes.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation Lists - Separate dropdowns created from table

    You actually may find this layout easier on the eye. On the Lists sheet, just add as many lists as you wish. Row1 is used to dynamically create the first drop down called "Parts", then the second drop down is dynamically created in the pink DV formula cells.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Data Validation Lists - Separate dropdowns created from table

    Impressive. +1

    I will probably end up using this however I was hoping to have the dropdown lists in a table-like layout as in my original WB (post #1). If I deleted the "FALSE" entries, would it be possible to set up named ranges (using ranges B2:I2, B3:I3 etc) that ignore the empty cells in these ranges? I guess I would need to change the TRUE entries to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation Lists - Separate dropdowns created from table

    Nope. Your table would require a bit of deep VBA and enabled macros. My solution is VBA-free. No charge.

  7. #7
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Data Validation Lists - Separate dropdowns created from table

    I'm not sure that it is impossible without resorting to VBA. I have a (unfounded ) hunch that with some fancy OFFSET and LOOKUP formulas in the Named Range formula area this might be pulled off.

  8. #8
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Data Validation Lists - Separate dropdowns created from table

    Attached is closer to what I had in mind.

    What I would have liked to do is have the Named Ranges run straight off the data in Range G1:L9 (with the use of various functions in the Named Range formulas to remove the empty cells). However I don't know how to do this. So I have to rely on the use of formulas in ranges A1:E9 and N2:T9 which looks messy and takes up space.

    I am closing this thread however if anyone does know of a way to use Named Ranges to ignore empty cells in a range, please send me a PM. Thanks.
    Attached Files Attached Files

+ 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. Linking two of the same data validation lists on two separate sheets
    By MarioLamaa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2013, 04:52 AM
  2. Data validation lists from pivot table data
    By KevinThomas in forum Excel General
    Replies: 6
    Last Post: 03-09-2010, 03:33 PM
  3. Data Validation Dropdowns and Change Events
    By NSTAR in forum Excel General
    Replies: 1
    Last Post: 08-16-2009, 06:10 AM
  4. Data Validation lists from MS Access Table
    By kaitewright in forum Excel General
    Replies: 1
    Last Post: 12-08-2008, 05:06 PM
  5. Replies: 3
    Last Post: 10-22-2007, 12:14 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