+ Reply to Thread
Results 1 to 3 of 3

.RemoveDuplicates

  1. #1
    Registered User
    Join Date
    04-14-2017
    Location
    california
    MS-Off Ver
    2013
    Posts
    13

    .RemoveDuplicates

    Hi all,

    I'm using .RemoveDuplicates as seen below:

    Please Login or Register  to view this content.
    Is there a way to do this but not apply to a certain value? I don't want it to remove duplicates if the value is, "NTC".

    Thanks,
    Last edited by alansidman; 02-14-2018 at 05:35 PM. Reason: code tags added

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: .RemoveDuplicates

    Not that I know of. My workaround would be to use a helper column to number the rows in ascending order but include an IF test so that all the NTC values are given a big number.
    e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then copy the helper column and paste as values, then sort the columns using the he;per column as the key, and finally select the column of data down to the NTC values and use the Remove Duplicate functionality. Sort the data back in original order if necessary using the helper column.

    Note that I believe you can only use remove duplicates in one column so I'm not sure why you specify A:D.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,285

    Re: .RemoveDuplicates

    Please Login or Register  to view this content.

+ 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. RemoveDuplicates VBA Excel 2011 for Mac
    By ThomasDegelcke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2015, 02:40 AM
  2. VBA Removeduplicates?
    By Chiezo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2014, 11:30 AM
  3. [SOLVED] Problem using RemoveDuplicates
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 04-05-2013, 09:15 PM
  4. [SOLVED] Problem with RemoveDuplicates method
    By Mayda89 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2013, 12:38 PM
  5. [SOLVED] RemoveDuplicates Not Working
    By MCSmith in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-03-2012, 04:05 AM
  6. [SOLVED] Help with RemoveDuplicates
    By 0mgman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-27-2012, 06:04 AM
  7. RemoveDuplicates in VBA
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-25-2011, 11:13 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