+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Data validation drop-down list dependent on another cell

  1. #1
    Registered User
    Join Date
    05-12-2011
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2007
    Posts
    1

    Data validation drop-down list dependent on another cell

    I have kind of a heirarchy of ID numbers that I'm working with... so if the ID is A, appropriate subcategory IDs would be 0,1,..,B.

    I'd like to make a drop-down list of subcategory IDs given a particular ID. The way I have it set up now is that I have a sheet with, among other things, a column of As and a column of Bs where each row corresponds to an appropriate pairing:

    ID SubID
    12345 0
    12345 1
    12345 2
    12345 3
    23456 0
    23456 1

    So I can pull out the appropriate B given A easily enough from this list, but I'm having trouble coming up with a way to make the data validation drop-down list values from 0 to B. If there's a way to organize this sheet to make it more easy to make a validation list, I could do that too.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Data validation drop-down list dependent on another cell

    Hi Lister, welcome to the forum.

    You can create dependent Data Validation lists in Excel. Here's a quick tutorial on how to do so:

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

    Hope that helps!

  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: Data validation drop-down list dependent on another cell

    I think I know what you're after, a single two-column set of data like you've shown. Then a selection from a drop down that lists the unique column A values then generates a SUB-data-validation list on the column B matches, all within the single table and all dynamic.

    Yes?

    I have a technique published here showing you a way to do it. It's complex but it works, there's a sample workbook where you can play with it and see it laid out before trying all the steps on your own workbook.
    Sub DV Lists from a Larger DV List




    If you'd rather keep it simple, then maintaining separate lists and using the contextures site is the way to go.
    Last edited by JBeaucaire; 05-12-2011 at 09:28 PM.
    _________________
    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!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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