+ Reply to Thread
Results 1 to 4 of 4

Trying to add drop down list referencing to multiple column Table?

  1. #1
    Registered User
    Join Date
    01-22-2020
    Location
    Long Beach, Ca
    MS-Off Ver
    2020
    Posts
    9

    Trying to add drop down list referencing to multiple column Table?

    Hello hoping someone can help me on a project im currently working to keep Inventory Stock on sheet Metal at work.

    Im trying to add a Drop Down list on a My Sheet called "Material Log" On the First Column named Material i want a drop down list that states the materials that are reference on the table on my second Tab called Material Insert. On the next column under sheet size i want a drop down list that states all the sheet sizes that are available with the material chosen on the the first column.

    I hope im clear on what im trying to do any help will be greatly appreciated. Im new to excel trying to learn as i go.

    Thank You,
    Attached Files Attached Files
    Last edited by Pepe Le Mokko; 01-22-2020 at 01:05 PM. Reason: Removed unnecessary title part

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Trying to add drop down list referencing to multiple column Table?

    What you are trying to do is called a cascading drop-down list where the selection of one drop-down item determines the selections available for the next drop-down list.

    You can look up cascading drop-down lists on the web, but most of those techniques are not very flexible. Your data looks like it is suitable for the non-VBA method shown in the first link below. Let me know if you need help with it. You are only going two levels deep so you won't need the COUNT column. Also included is a link on how to do named dynamic ranges which is also needed for this to work.

    http://www.utteraccess.com/wiki/Casc..._%28Non-VBA%29
    http://www.utteraccess.com/wiki/Casc...ists_%28VBA%29

    http://www.utteraccess.com/wiki/Offs...Dynamic_Ranges
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

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

    Re: Trying to add drop down list referencing to multiple column Table?

    1. You'll need a secondary list, it's pretty easy to simply do a Filter for unique values on the first column of the table to extract the alphabetized list into a clean column.
    2. Then we create a dynamic named range of that secondary list. So you can add or subtract items in that column and the named range MaterialList adjusts itself.
    3. We add the Data Validation in column A to use the new named range MaterialList. (working)
    4. For the dynamic list of options, another dynamic named range formula can accomplish this. However, these don't work if the source material is an Excel "Table". It must be a normal range. So for now I copied your Table to the right, then made a named range Material2 to cover this range.
    5. Now we add a DV formula in column B to present a list of Options based on the column A choice.
    6. =OFFSET(Material2,MATCH(A2,OFFSET(Material2,,,,1),0)-1,1,COUNTIF(OFFSET(Material2,,,,1),A2),1)

    It's all working in the attached file.


    Dynamic Cascading Drop Downs using OFFSET
    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!)

  4. #4
    Registered User
    Join Date
    01-22-2020
    Location
    Long Beach, Ca
    MS-Off Ver
    2020
    Posts
    9

    Re: Trying to add drop down list referencing to multiple column Table?

    Thank You very much, Your reply and link to Dynamic Cascading Drop Downs helped very much.

+ 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. Referencing multiple values in a drop down list, using an 'If' statement
    By jwang23 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2019, 06:06 PM
  2. Replies: 1
    Last Post: 03-01-2019, 01:56 AM
  3. Replies: 15
    Last Post: 08-10-2017, 02:08 AM
  4. Replies: 1
    Last Post: 07-20-2017, 01:47 AM
  5. Replies: 1
    Last Post: 07-20-2017, 01:44 AM
  6. [SOLVED] Creating a drop down list referring to a column in a table
    By jdk789 in forum Excel General
    Replies: 4
    Last Post: 11-08-2012, 07:18 AM
  7. Replies: 0
    Last Post: 09-27-2005, 11:05 AM

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