+ Reply to Thread
Results 1 to 4 of 4

Dropdown list created with dependent cell value

  1. #1
    Registered User
    Join Date
    07-19-2007
    Posts
    51

    Dropdown list created with dependent cell value

    i have data organized the following way and cant change its layout
    Name City
    Andy Atlanta
    Bill Atlanta
    Chet Boston
    David Boston
    Edgar Chicago
    Fred Chicago

    this data exists in A1: B7
    Later in the sheet (c12) have the value chicago entered
    I want a drop down in D12 to give me the option of picking only the names in chicago (Edgar or Fred)

    Thanks

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

    Re: Dropdown list created with dependent cell value

    You'll need to create some named ranges that refer to cells that are creating themselves, meaning they are watching your names/city columns and creating a picklist for you.

    Sample attached that matches your sample data. There are array formulas in the colored sections. If/When you edit them, confirm your changes with CTRL-SHIFT-ENTER, then copy the changed cell back to the rest of the colored range using that particular formula.
    Attached Files Attached Files
    Last edited by JBeaucaire; 03-03-2009 at 07:36 PM. Reason: Improved sheet a little.
    _________________
    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!)

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Dropdown list created with dependent cell value

    Hi jchambers00,

    The attached is a potential VBA solution that updates the data validation list in cell D12 whenever the value in cell C12 is changed (note the custom message in the list if no match(es) are found).

    HTH

    Robert
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-19-2007
    Posts
    51

    Re: Dropdown list created with dependent cell value

    wow, thats a great solution, thanks

+ 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