+ Reply to Thread
Results 1 to 8 of 8

Dynamic dependent data validation list

  1. #1
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Dynamic dependent data validation list

    Hi all,

    I got stuck when trying to get a dynamic data validation list who is dependent on another data validation list. I would really appreciate some help here.

    I've uploaded a workbook that hopefully illustrates what i am trying to accomplish. In a summary: I have some companies as a header in a couple of columns. Under each company there are contact persons for that company.

    I now have a dynamic drop down list with all the companies and need to have a drop down list that is dynamic and will change depending on whats chosen in the drop down list that contains the company names.

    /Masun
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Dynamic dependent data validation list

    I think this link will be of help

  3. #3
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Dynamic dependent data validation list

    Hi,

    Thanks for answering. I have looked it out. If i understood it correctly you need to make a named range for each of the different drop down lists. That makes it less dynamic in my case since it will not work if any of my colleagues enter a new company and some contact persons for that company. I wish it to work without the colleagues have to define a name...

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Dynamic dependent data validation list

    I would suggest you read a bit further, and especially the part about "Dynamic Lists"

    And from the sam site this link

  5. #5
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Dynamic dependent data validation list

    Hi again,

    I have been struggling with this for quite a while now. Do you mean that if a new company in my uploaded file will be added (ie a new column with the company name as header and Contact persons in the same column under the header) that i or my colleagues wont have to make a defined name?

    The table feature with all its dynamic wont work for me cause my data is in seperate sheets.

    There must be something that i dont understand here, are u able to show me in my uploaded file?

    /Masun

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dynamic dependent data validation list

    Create a list like this:

    Data Range
    A
    B
    1
    Apple
    Brad Pitt
    2
    Apple
    Robert de Niro
    3
    Apple
    Kevin Spacey
    4
    Apple
    Seth Rogan
    5
    Microsoft
    Julia Roberts
    6
    Microsoft
    Jennifer Lawrence
    7
    Microsoft
    Scarlet Johanson
    8
    ATT
    Al Pacino
    9
    ATT
    Arnold Schwarzenegger
    10
    ATT
    Joe Pesci
    11
    ATT
    John Cusack
    12
    Cisco
    Demi Moore
    13
    Cisco
    Mila Kunis


    With that list in the range Sheet1!A1:B13...

    As the source for the drop down list in cell B22 use:

    =OFFSET(Sheet1!B$1,MATCH(A22,Sheet1!A:A,0)-1,0,COUNTIF(Sheet1!A:A,A22))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Dynamic dependent data validation list

    Hi,

    Thanks for the answer. If i arrange my data like you suggest, i will have some trouble in the drop down list in A22 (the companies), the formula i have will not give me the unique values but all the values in the "company" list. Is there some way to get the unique company names in the dropdown list?

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Dynamic dependent data validation list

    just create a new list for the companies and use this new list as the source for the company drop down:

    Data Range
    A
    B
    C
    1
    Apple
    Brad Pitt
    Apple
    2
    Apple
    Robert de Niro
    Microsoft
    3
    Apple
    Kevin Spacey
    ATT
    4
    Apple
    Seth Rogan
    Cisco
    5
    Microsoft
    Julia Roberts
    6
    Microsoft
    Jennifer Lawrence
    7
    Microsoft
    Scarlet Johanson
    8
    ATT
    Al Pacino
    9
    ATT
    Arnold Schwarzenegger
    10
    ATT
    Joe Pesci
    11
    ATT
    John Cusack
    12
    Cisco
    Demi Moore
    13
    Cisco
    Mila Kunis

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dependent List Validation from Dynamic Named Ranges
    By freeride in forum Excel General
    Replies: 11
    Last Post: 01-22-2020, 03:07 PM
  2. Data Validation List - Dependent on Adjacent Cell - Value from Unsorted List
    By justforthis1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-26-2013, 12:24 PM
  3. Replies: 2
    Last Post: 07-17-2012, 01:18 PM
  4. Dependent data validation list
    By carrie83 in forum Excel General
    Replies: 3
    Last Post: 03-12-2012, 11:43 AM
  5. [SOLVED] Dependent List- Data Validation
    By Annie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2005, 11:05 AM

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