+ Reply to Thread
Results 1 to 8 of 8

Interdependent Drop Down Lists

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    boca raton
    MS-Off Ver
    Excel 2007
    Posts
    2

    Interdependent Drop Down Lists

    I am trying to build a planning tool that will walk people through completing a form of predetermined information. Here is my idea:

    I have built a drop down menu that contains a list of location attributes (country, state, building name, circuit ID etc)
    Depending on which attribute is selected I would like Excel to offer another drop down menu with more specific sub category details.

    For example: We have offices in several states around the US and in many states we have offices in several cities w/i the state. The main category of 'State' was selected and a new drop down menu is now presented with a list of all states we have an office in. California is selected and we have 4 offices w/i this state. A new drop down is presented which shows the address of each office w/i the state of California.

    I know how to create the drop down lists but I am not sure how to create these dependencies/relationships or how to make Excel "present" the new drop down lists. Is this possible with Excel?

    ps. For the sake of this example the information I am using is greatly simplified from what would actually be presented.
    Attached Files Attached Files
    Last edited by chollinger; 03-12-2012 at 06:42 PM.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Interdependent Drop Down Lists

    Use Named Range. Name L5:L6 as Florida O5:O6 as Texas. In Cell C3 Data Validation List, enter = Indirect(B3) and in Cell C4, enter =Indirect(B4)

    What happen is the data validation is looking at the name range list (Florida for example) to see what are the items contain in that list. Named Range Florida contain 789 W Bull St and 101 N Oil Ave, the formula Indirect will display the two items in the drop down list.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Interdependent Drop Down Lists

    See http://www.contextures.com/xldataval02.html
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    03-12-2012
    Location
    boca raton
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Interdependent Drop Down Lists

    Between both of these previous replies I was able to get the drop down dependencies working. Is there a way to force a change in a dependent cell if an independent cell is changed?

    For example: I chose Florida from a list which allowed me to select from Florida Addresses in the next cell. I then realized I should have selected Texas instead. I click on Florida and select Texas from the list to change it. If I'm not careful or get distracted and forget, the Florida address is still populated but now it is next to the Texas cell. If I were to select the Florida address now, only Texas addresses would be available in the list but I would prefer that when Florida is changed to Texas that the Florida address is removed automatically.

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Interdependent Drop Down Lists

    @chollinger - i do not think that is possible without macros... but i will defer to the experts in this thread.

  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: Interdependent Drop Down Lists

    Actually you can use conditional formatting to HIDE the old value that was previously selected if it no longer is a match to the dependent cell you changed.

    Post up your working sheet and I'll show you what I mean.


    Or if you want to figure it out, here's an example:The file you want to examine is:
    --DependentLists3.xls - 3 levels
    _________________
    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!)

  7. #7
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Interdependent Drop Down Lists

    @JBeaucaire: awesome, you rock(et)!!!

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

    Re: Interdependent Drop Down Lists

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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