+ Reply to Thread
Results 1 to 9 of 9

variable drop-down list for inventory list

  1. #1
    Registered User
    Join Date
    05-08-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    5

    variable drop-down list for inventory list

    Hello everyone. Im trying to organize a tools inventory list. Its supposed to be sort of like an order sheet for each department. But what I want to do is when I select either CARPENTRY, or any of the other trades from a drop-down list, I'll be able to select from another drop-down list items associated with that trade in particular. So eventually I want the master data hidden, preferably in another sheet. I searched all of Google but it seems a bit complicated to get it done. Any help is appreciated. I've attached the sheet so that you can see what I'm talking about. MOVE IN MASTER LIST.xlsx

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: variable drop-down list for inventory list

    OK, looks like you have most of the hard work done.

    Now, you need a list of all the categories.

    Where are the drop downs supposed to be?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    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,929

    Re: variable drop-down list for inventory list

    Hi and welcome to the forum

    See if the attached is what you want? I rearranged your data and put it on sheet 2 (now called Data). I then created a named range for each tool type, and used INDIRECT() to pull in teh data for each selected tool type.
    To see the names, look under Formula/Defined names/Name manager
    To see the Dop-down formula, look under Data/Data Tools/Data Validation
    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

  4. #4
    Registered User
    Join Date
    05-08-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: variable drop-down list for inventory list

    Wow....you're fast..lol. Very nice. It's exactly what I want. Now let me get this straight: 1. I dont need the tool list in the "DEPT ORDER" sheet? 2. How would I go about expanding any of the tool list? or Do I just expand the cell range in the formula? 3. For internal use we need to know the quantity of each item, can I just add columns next to each Dept. or do I also have to edit the formula as well? I really appreciate all you help with this.

    Quote Originally Posted by FDibbins View Post
    Hi and welcome to the forum

    See if the attached is what you want? I rearranged your data and put it on sheet 2 (now called Data). I then created a named range for each tool type, and used INDIRECT() to pull in teh data for each selected tool type.
    To see the names, look under Formula/Defined names/Name manager
    To see the Dop-down formula, look under Data/Data Tools/Data Validation

  5. #5
    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,929

    Re: variable drop-down list for inventory list

    1. You dont need columns A:D (or maybe A:E) on DEPT ORDER SHEET. column F contains the Drop-Downs, so you need that column. If you want to add QTY's then maybe keep E

    2. You would need to expand the range of the range name (in Name Manager)

    3. If you want to pull in QTY's, you could probably use vlookup().. If you provide a sample of what you want, I can work on it for you

  6. #6
    Registered User
    Join Date
    05-08-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: variable drop-down list for inventory list

    Ok I see. As far as pulling the Qty's, I don't think it'll be necessary because the purpose is that each dept input how much of each item they'll need, and from the data list we can determine whether we need to get more, or if we have enough. Now I seem to have run into a small problem. It seems as if the drop down list only goes for about 30 rows in the "DEPT ORDER" sheet, how can i expand that to at least two pages? Also, the CARPENTER drop down items don't show up when it's selected. I've attached the sheet to see the minor changes that I've done. Thanks beforehand.

    Quote Originally Posted by FDibbins View Post
    1. You dont need columns A:D (or maybe A:E) on DEPT ORDER SHEET. column F contains the Drop-Downs, so you need that column. If you want to add QTY's then maybe keep E

    2. You would need to expand the range of the range name (in Name Manager)

    3. If you want to pull in QTY's, you could probably use vlookup().. If you provide a sample of what you want, I can work on it for you
    Attached Files Attached Files

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: variable drop-down list for inventory list

    Here's another way to do this.

    Data Range
    A
    B
    C
    D
    E
    F
    1
    Category
    Item
    Categories
    Top List
    Dep List
    2
    Cat1
    Cat1-1
    Cat1
    Cat3
    Cat3-2
    3
    Cat1
    Cat1-2
    Cat2
    4
    Cat1
    Cat1-3
    Cat3
    5
    6
    Cat2
    Cat2-1
    7
    Cat2
    Cat2-2
    8
    Cat2
    Cat2-3
    9
    Cat2
    Cat2-4
    10
    11
    Cat3
    Cat3-1
    12
    Cat3
    Cat3-2
    13
    Cat3
    Cat3-3
    14
    Cat3
    Cat3-4
    15
    Cat3
    Cat3-5
    16
    Cat3
    Cat3-6
    17
    -----
    -----
    -----
    -----
    -----
    -----


    E2 is the top level drop down list. The source for the list is C2:C4.

    F2 is the dependent drop down list. As the source use:

    =OFFSET(B2,MATCH(E2,A2:A16,0)-1,,COUNTIF(A2:A16,E2))

  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,929

    Re: variable drop-down list for inventory list

    @ Tony, thanks for the assist. I was trying to put an offset() togetther, but the DV wasnt picking up the range

    This was what I was playing with for "General" in C...

    =OFFSET(Data!$C$1,0,0,MATCH("*",Data!$C:$C,-1),1)
    Last edited by FDibbins; 05-24-2014 at 08:17 PM.

  9. #9
    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,929

    Re: variable drop-down list for inventory list

    to extend the DD list, just copy the last cell down as far as you need. There was an error in the Carpentry range, I have corrected it
    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. Replies: 5
    Last Post: 04-30-2014, 05:46 PM
  2. Replies: 0
    Last Post: 04-29-2014, 01:01 PM
  3. Replies: 12
    Last Post: 04-30-2013, 05:40 PM
  4. Dependent variable in Drop-Down List
    By excelhelp18 in forum Excel General
    Replies: 1
    Last Post: 03-30-2009, 06:58 AM
  5. Variable Data into a Drop Down List
    By Russell719 in forum Excel General
    Replies: 10
    Last Post: 12-22-2008, 04:36 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