+ Reply to Thread
Results 1 to 6 of 6

Unique Values in Data Validation List

Hybrid View

  1. #1
    Registered User
    Join Date
    03-17-2017
    Location
    California - US
    MS-Off Ver
    MS 2010
    Posts
    27

    Unique Values in Data Validation List

    Hello all,

    I have put together a sample spreadsheet of an issue I am experiencing, but the main goal is to have 2 drop down lists using data validation to only show unique values:

    Box 1 - Project 1 or 2. The range is pulling from a range that includes duplicates, so I only want to show these 2 options
    Box 2 - Milestone dates as a drop down list, but I want the list to be flexible depending on the value selected in box #1.

    *spreadsheet attached*

    Thanks for your time on this!

    Let me know if you have questions
    SB
    Attached Files Attached Files
    Last edited by sbeatty; 03-30-2017 at 04:58 PM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Unique Values in Data Validation List

    This can be done, but it only works because the projects are grouped together. I made a named dynamic range called Date_List with the definition:
    =OFFSET(Sheet1!$A$12,MATCH(Sheet1!$A$24,Sheet1!$A$12:$A$20,0)-1,1,COUNTIF(Sheet1!$A$12:$A$20,Sheet1!$A$24),1)
    I used this name for the validation.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,707

    Re: Unique Values in Data Validation List

    This is one way to do it.

    Copy the Projects list to a temporary area off to the side. Apply Data > Remove duplicates. Copy the resulting unique data and paste Tranposed. I did that in L11:M11 of the attached.

    Then array enter this formula in L12 and fill down and across until you get blanks. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    =IFERROR(INDEX($B$12:$B$20,SMALL(IF(L$11=$A$12:$A$20,ROW($A$12:$A$20)-MIN(ROW($A$12:$A$20))+1),ROWS($12:12))),"")


    Then set data validation for A24 to L11:M11 and data validation for B24 with this formula in Source:
    Formula: copy to clipboard
    =INDEX($L$12:$M$18,,MATCH($A$24,$L$11:$M$11,0))
    Attached Files Attached Files
    Dave

  4. #4
    Registered User
    Join Date
    03-17-2017
    Location
    California - US
    MS-Off Ver
    MS 2010
    Posts
    27

    Re: Unique Values in Data Validation List

    Hey Dave,

    I liked your idea of essentially having a side table as a reference. I'm not sure how much I'll need your index formula because I can easily update this manually every other month or so. My biggest hiccup was not realizing that I could enter a formula into the data validation source - so big thank you there. Appreciate your efforts on this. I'll consider this solved.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,707

    Re: Unique Values in Data Validation List

    Glad to hear it. It is always gratifying to hear someone is learning new things from this site. You're welcome and thank you for the feedback.

    Since this is solved please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Registered User
    Join Date
    03-17-2017
    Location
    California - US
    MS-Off Ver
    MS 2010
    Posts
    27

    Re: Unique Values in Data Validation List

    I've got a supplemental question for you that is less important - I got the data validation to work just fine using your method, but I still cannot get the drop down list to ignore the blank cells as options. Do you know how to resolve this?

    Scott

+ 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. [SOLVED] Data validation - unique list of table column values
    By michellepace in forum Excel General
    Replies: 6
    Last Post: 11-26-2015, 04:02 PM
  2. Data Validation List - Formula to Sort and Return Unique Values in List
    By beewketu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2015, 04:18 PM
  3. Unique list of records dropdown in Data Validation list
    By sghosh12 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-13-2013, 08:27 AM
  4. Validation List Unique Values
    By matt4003 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-02-2010, 04:20 AM
  5. Data Validation List - Unique Values from a List
    By kwsmith in forum Excel General
    Replies: 0
    Last Post: 07-17-2007, 04:56 PM
  6. [SOLVED] Need UNIQUE values for Data Validation List
    By jg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-12-2006, 05:45 PM
  7. Replies: 1
    Last Post: 07-08-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