+ Reply to Thread
Results 1 to 5 of 5

Data Validation List - Formula to Sort and Return Unique Values in List

  1. #1
    Registered User
    Join Date
    03-29-2012
    Location
    t
    MS-Off Ver
    Excel 2010
    Posts
    22

    Data Validation List - Formula to Sort and Return Unique Values in List

    Hello,

    I have an external report where the data rows could be updated periodically. What I am looking for is a formula to use in a data validation list to accomplish the following steps:
    - First: Be able to lookup in a column in the external data and return a sorted list of unique values (i.e. show only one instance of each repeating value listed in the external data column)
    - Second: Depending on the value selected from the drop down in the first step, return sorted values from another column of the external data which corresponds to the value in the first column.
    Please see attached sample file for reference.

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: Data Validation List - Formula to Sort and Return Unique Values in List

    For Uniique names
    =IFERROR(INDEX($A$2:$A$8,SMALL(IF(COUNTIF($C$1:$C1,$A$2:$A$8)=0,ROW($A$2:$A$8),""),1)-ROW($A$2)+1),"")
    For Status
    =IFERROR(INDEX($B$2:$B$8,SMALL(IF($A$2:$A$8=$E$3,ROW($A$2:$A$8),""),ROW(A1))-ROW($A$2)+1),"")
    For validaton of names
    =INDIRECT("$C$2:$C$"&COUNTIF($C$2:$C$15,"?*")+1)
    For validaton of status
    =INDIRECT("$D$2:$D$"&COUNTIF($D$2:$D$15,"?*")+1)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-29-2012
    Location
    t
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Data Validation List - Formula to Sort and Return Unique Values in List

    Hi kvsrinivasamurthy,

    Thanks for your feedback. While the proposed solution would return the results I am looking for, I was hoping that somehow we can have the unique value incorporated within the data validation and thereby avoid the need for creating the helper columns (in columns C and D) of the sample file. Is this something possible to achieve?

    Thanks,

  4. #4
    Registered User
    Join Date
    03-29-2012
    Location
    t
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Data Validation List - Formula to Sort and Return Unique Values in List

    Following up to see if someone could please help me on this issue. After several attempts to modify the proposed formula kvsrinivasamurthy provided, It doesn't seem it will work for my purposes. I am attaching another template with sample data and comments as to what I am trying to accomplish.

    I have an external data in one tab which has three columns and where each column may have duplicate values.In another sheet I am trying to utilize data validation list to show the unique values from each column of the external data. This list should available be in each row users will enter.

    For instance, the list in column will return the unique values from the third column of the external data tab. The next two column lists will return the unique values that corresponds to the selection in the first column list.

    I hope that makes sense.

    Thanks in advance!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-29-2012
    Location
    t
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Data Validation List - Formula to Sort and Return Unique Values in List

    Any help please.

+ 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. Replies: 1
    Last Post: 06-19-2013, 07:02 PM
  2. 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
  3. Replies: 0
    Last Post: 01-09-2013, 11:44 AM
  4. Replies: 3
    Last Post: 07-20-2012, 09:52 AM
  5. Validation List Unique Values
    By matt4003 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-02-2010, 04:20 AM
  6. Data Validation List - Unique Values from a List
    By kwsmith in forum Excel General
    Replies: 0
    Last Post: 07-17-2007, 04:56 PM
  7. [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
  8. 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