+ Reply to Thread
Results 1 to 6 of 6

Dependent list using only unique values in drop down

  1. #1
    Registered User
    Join Date
    05-19-2009
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2000
    Posts
    5

    Dependent list using only unique values in drop down

    I have three named ranges.
    List1, List2, List3

    Using Excel Data Validation, i need a dependent list that shows only the unique values in the named range.

    Based on value chosen from List1, i need to pick from List2 (unique values).
    Based on value chosen from List2, i need to pick from List 3(unique values).


    The problem I kept running into is getting the unique values when dealing with named ranges. The lists all have a lot of duplicates values that cant be removed from the original list so, they have to be removed behind the scenes (when determining the named range, or the validation source).

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Dependent list using only unique values in drop down

    I'd be glad to take a look. Can you post a sample workbook?
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Dependent list using only unique values in drop down

    For the sake of DV you will need to create physical lists that do not contain the duplicates.

    In short... consider creating three (two if List1 is already unique) additional lists that generate unique values only and where List2 and List3 options are further restricted based on prior List selection.

    Are the current lists sorted in any way ?

    The alternative would be to use VBA to generate/build and assign the DV lists at run time.

  4. #4
    Registered User
    Join Date
    05-19-2009
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2000
    Posts
    5

    Re: Dependent list using only unique values in drop down

    Here you are Sir.
    Thanx very much!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-19-2009
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2000
    Posts
    5

    Re: Dependent list using only unique values in drop down

    Will try... Thanx

  6. #6
    Registered User
    Join Date
    05-19-2009
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2000
    Posts
    5

    Re: Dependent list using only unique values in drop down

    Cant work. Each list is a breakdown of codes (10 digit code broken down into 3 parts - List1 being three digits, List2 being four digits, List3 being three digits). If i eliminate the duplicates from the original list, the dependency will be ineffective. Some of the digits in List1 are repeated, but the subseqent codes in List2 are dependent upon List1. So are the codes in List3 - dependent on codes in List2.

+ 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