+ Reply to Thread
Results 1 to 4 of 4

Remove Duplicates in Data Validation List

  1. #1
    Registered User
    Join Date
    10-18-2007
    MS-Off Ver
    2010
    Posts
    90

    Remove Duplicates in Data Validation List

    Good day - I would like to use Data Validation to create a unique value drop down list populated from a column with many duplicates. I cannot create an extra column to remove the duplicates, therefore I am looking to do this as part of my Data Validation reference formula. Any ideas?
    Thank you in advance for your assistance,
    N

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Remove Duplicates in Data Validation List

    Quote Originally Posted by NMullis View Post
    I cannot create an extra column to remove the duplicates
    Sure you can. I give you permission to it the easy way.

    1) highlight the column of values
    2) Do a Data > Filter > Advanced Filter and use these settings:

    -copy to another location (select an empty column)
    -unique values only

    3) Copy the resulting unique list to a new sheet in the workbook
    4) Sort the list
    5) Highlight the range of cells that results and give them a name by typing into the NAME box just to the left of the formula bar, where you normally see the active cell address. Let's name this MyList

    6) Now hide this reference sheet if necessary
    7) Lastly, use that named range as the source of your Data Validation list.

    Allow: List
    Source: =MyList
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-18-2007
    MS-Off Ver
    2010
    Posts
    90

    Re: Remove Duplicates in Data Validation List

    Thank you Jerry , but please allow me to restate - creating an extra column is not an option for me in this particular instance. Is there a way to add it to my source reference in Data Validation?
    Thanks!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Remove Duplicates in Data Validation List

    Define "automatic" then, for you in this instance. The solution for anything "automatic" is going to be VBA.

    1) I push a button and this DV list is updated anew with all the current unique values in column A
    2) I type a new value into column A that is not part of the current DV list and it adds itself permanently to the list
    3) When I bring this sheet up onscreen each time I would like the DV list to refresh with all the current column A values
    4) Some other criteria

    ==========================
    Also, please address a few comments as to why an extra column is not an option for a normal DV list. We deserve to know how that option got removed, right?

+ 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