+ Reply to Thread
Results 1 to 10 of 10

Create a Sub List from a drop down list

  1. #1
    Registered User
    Join Date
    01-26-2009
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Create a Sub List from a drop down list

    I need to create a 'sub' list from a drop down list.
    I have 8 categories in a drop down list in column A, but i need column B to also have a drop down list of sub categories depending on what category is selected in column A.

    And once column B is populated, i need column C to auto populate with a value. All data is stored on the spreadsheet.

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Create a Sub List from a drop down list

    Try here:
    http://www.ozgrid.com/Excel/dependent-lists.htm

    No point in me copy-pasting!

    HTH

  3. #3
    Registered User
    Join Date
    01-26-2009
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Create a Sub List from a drop down list

    I actually just did it using that exact link. Thanks a heap! But i now have another issue,

    once the sub-list has been defined, I need a known value to be automatically enetered into the next column. Column A, B and C are all specific to each other... Still with me?

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Create a Sub List from a drop down list

    Yes,

    Will a formula suffice (along the lines of 'if column b value = apple then pie, else flan') or do you want a singular value entry (using VBA the value is automatically entered when column B is populated)?

    Bear in mind VBA is not very portable as most users have security settings on High as per default.

    CC

  5. #5
    Registered User
    Join Date
    01-26-2009
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Create a Sub List from a drop down list

    formula will do fine i think? will i have to do each rule individually? There are 18 values. Im not very cluey when it comes to formulas in excel. I tried =IF(A1=BLA:B2=BLABLA,B3=VALUE) . have no idea...

  6. #6
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Create a Sub List from a drop down list

    For Column A Create the Main List..
    For Column B create a list which depend on Column A ..

    see the below site to achieve the above result
    http://www.ozgrid.com/Excel/dependent-lists.htm

    now in column C you can put a vlookup to lookup column B and fetch the corresponding value in column C...

  7. #7
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    Re: Create a Sub List from a drop down list

    sorry to butt in
    but what happens when you want to do another dependant set ?
    the example uses 2 drop downs how about if you want multiple?

  8. #8
    Registered User
    Join Date
    01-26-2009
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Create a Sub List from a drop down list

    you can create further lists, see

    http://www.contextures.com/xlDataval02.html


    I still cant work out the formula for column C. Once A and B are selected, I need column C to populate. (C is dependant on A and B)

  9. #9
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    Re: Create a Sub List from a drop down list

    =indirect(substitute(a2&b2," ",""))

  10. #10
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Create a Sub List from a drop down list

    You'll probably want a lookup - but it might be easier to explain if you post a small example

    HTH

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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