+ Reply to Thread
Results 1 to 5 of 5

Dependent lists

  1. #1
    Registered User
    Join Date
    01-12-2010
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Dependent lists

    Gd'ay all. I have googled a bit for this answer, but can't seem to get anything to work. I have a worksheet which values are sourced from a database. This table looks like this: (i am actually using different names to make it easier)

    Last name | First name | some personal details.

    in this case there can be more then one last name the same, and more then one first name to be the same, but there will NEVER be someone with the same first and last name.


    in another work sheet i want to get the personal details by using a validation drop down list to choose the last name, then another validation drop down list (based on last name) to get the first name, so when i am choosing the last name only the first names with corrosponding last names will appear.

    Anyone with some idea on how to do this, as i have been having no luck in getting anything working.

    Cheers

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Dependent lists in excel

    Hi,

    please look at this link: http://www.contextures.com/xlDataVal02.html

  3. #3
    Registered User
    Join Date
    01-12-2010
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Dependent lists in excel

    Thanks for that, but i tried it and it desn't semm to do what i am after (if i did it correctly :-) )
    The list i am looking at is like this:
    Please Login or Register  to view this content.
    Because it is in 2 rows, not a list for every last name, that INDIRECT method doesn't seem to work

    Any other ideas???

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Dependent lists

    You need to filter out unique values for last name.
    You will also need to filter out for each last name what the valid choices for first name will be.
    Copy the unique values into their own columns and make these the source for your data validation.

    Depending on how much data you have, this will be a lot of work.

    Use Advanced filter to help with creating your unique lists.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dependent lists

    well its late and im tired but you can do it this way
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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