+ Reply to Thread
Results 1 to 7 of 7

Remove duplicates from data validation list

  1. #1
    Registered User
    Join Date
    12-31-2016
    Location
    Karachi
    MS-Off Ver
    2010
    Posts
    6

    Remove duplicates from data validation list

    I have more than 1000 entries and i want only unique text to come in my data validation list
    is there any way?
    Please assist at asap
    thanks

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Remove duplicates from data validation list

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Remove duplicates from data validation list

    You should be able to adapt this to your needs. With a list that contains duplicates in column M this formula (I put it in column P but you can use another column just change the reference to P$1:P1 to the column of your choice where the extraction will take place)
    Enter in P2 and fill down until blank cells appear. This works equally well for numeric data. I used letters for ease of entry.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Change the ranges to match your data.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Remove duplicates from data validation list

    If duplicate data in "A2:A13"
    Firstly creat Table with range "A2:A13"
    Go into "Name Manager" & define Name List & in Refer to "Offset" below formula.
    PHP Code: 
    =OFFSET(Sheet1!$A$2,0,0,COUNT(IF(Sheet1!$A$2:$A$1000="""",1)),1

    After that, In "B2"
    PHP Code: 
    =INDEX(List,MATCH(0,IF(MAX(NOT(COUNTIF($B$1:B1,List))*(COUNTIF(List,">"&List)+1))=(COUNTIF(List,">"&List)+1),0,1),0)) 


    In "C2" creat "Data Validation List" Select from "Allow" as List & in source
    PHP Code: 
    =$B$2:$B$10 


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

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

    Re: Remove duplicates from data validation list

    Try something like this...

    Data Range
    A
    B
    C
    D
    E
    1
    Data
    Uniques
    Dropdown List
    2
    1
    1
    1
    3
    1
    2
    4
    2
    3
    5
    3
    4
    6
    3
    5
    7
    3
    8
    4
    9
    4
    10
    4
    11
    5
    12
    ------
    ------
    ------
    ------
    ------


    This array formula** entered in C2:

    =IFERROR(INDEX(A$2:A$11,MATCH(0,COUNTIF(C$1:C1,A$2:A$11),0)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.

    Then, as the source for the drop down list use this formula:

    =OFFSET(C2,,,SUMPRODUCT(--(C2:C100<>"")))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    07-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Remove duplicates from data validation list

    Quote Originally Posted by newdoverman View Post
    You should be able to adapt this to your needs. With a list that contains duplicates in column M this formula (I put it in column P but you can use another column just change the reference to P$1:P1 to the column of your choice where the extraction will take place)
    Enter in P2 and fill down until blank cells appear. This works equally well for numeric data. I used letters for ease of entry.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Change the ranges to match your data.
    How to sort this list, can you help me?

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Remove duplicates from data validation list

    Seagull1. Please re-read rule 4. then please START YOUR OWN THREAD. To make it easier to get an answer:

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. duplicates in drop down list from data validation
    By aljiwani in forum Excel General
    Replies: 5
    Last Post: 12-11-2019, 05:25 PM
  2. Remove Vertical Scroll Bar In Data Validation List
    By biznez in forum Excel General
    Replies: 2
    Last Post: 04-22-2016, 02:07 PM
  3. [SOLVED] Remove Blanks from Data Validation list
    By indub in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2015, 11:23 AM
  4. [SOLVED] Remove blanks from Data Validation List
    By PatRiot199 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-29-2013, 07:51 PM
  5. Remove blank entries from data validation list
    By Icarus in forum Excel General
    Replies: 7
    Last Post: 11-08-2012, 01:56 AM
  6. Remove Duplicates in Data Validation List
    By NMullis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2012, 10:53 AM
  7. remove blanks from data validation list
    By jame24 in forum Excel General
    Replies: 5
    Last Post: 04-27-2012, 11:44 PM

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