+ Reply to Thread
Results 1 to 5 of 5

Data Validation Question

  1. #1
    Registered User
    Join Date
    02-07-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    26

    Data Validation Question

    Good morning to all,

    I have a question regarding data validation. This is my situation: I have a very extensive horizontal list of values that I would want to appear in a list (possibly a thousand or more). However, under each column heading, there are values (around 20 or so), varying for the different column headers.

    The objective is to create two validation lists. The first is to choose the column header while the second allows you to choose a value that is underneath that column header.

    The main problem I have encountered is that I would need to provide a name for each column's values, however with the large amount of columns I have, this would not be time efficient, so I'm searching for an alternative plan, whether it is a simple formula or a macro.

    Thank you very much in advance,


    Dave.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Data Validation Question

    Hello Dave,

    Welcome to the forum.

    Explore the attached and see if it works for you.

    Sheet one contains two drop down lists using Data validation.

    Drop down 1: =listheader
    Where listheader is a dynamic named range refering to row-2 on sheet2 using this formula
    =Sheet2!$A$2:INDEX(Sheet2!$2:$2,1,COUNTA(Sheet2!$2:$2))

    Drop Down 2: =OFFSET(Sheet2!$A$3,0,MATCH(A2,listheader,0)-1,INDEX(rowcount,1,MATCH(A2,listheader,0))-1,1)
    rowcount is a named range refering to: =OFFSET(listheader,-1,0)

    Row 1 of sheet2 contains counts of used rows in the columns. This count is referenced in the validation formula so that variable lists are sized per the number of items.


    Dynamic Validation Lists.xlsx
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    02-07-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    26

    Re: Data Validation Question

    Good morning Palmetto,
    Thank you very much for the example. I applied it to my own spreadsheet and it worked like a charm.

    I would like to continue building on his model, creating a third list. In the first example, it was looking up the column headers and then it populates a list based on the values under it. Now, let’s say I have another spreadsheet, with those list values as the headers and a new set of values under it (basically new subvalues, one level lower). I wish to create a third drop down list that functions in the same way as the previous example.

    If you could help with that, it would be great.

    Thank you so much,

    Dave

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Data Validation Question

    Hello Dave,

    Here is a better version of the dependent validation that uses Excel Tables. Only works for Excel 2007+.
    Explore and Learn.


    Excel Help_Dependent Validation Lists.xlsx

  5. #5
    Registered User
    Join Date
    02-07-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    26

    Re: Data Validation Question

    Thank you for the reply! And hope you had a good weekend.

    I think I should attach an example because the format of my question and of the data itself is a little different. As you will see, there are multiple projects with components and elements. Basically after picking a project, I would want to pick only the components found in that project, and then the elements associated with that component only for that project. It's a little tricky so I made a much smaller example of my data set that can help you visualize it.

    Thank you for your patience and hard work. Very much appreciated!


    Dave
    Attached Files Attached Files

+ 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