+ Reply to Thread
Results 1 to 4 of 4

Remove duplicates from table by only one column

  1. #1
    Registered User
    Join Date
    11-22-2016
    Location
    New York, NY
    MS-Off Ver
    2016
    Posts
    37

    Remove duplicates from table by only one column

    Hi,

    Is there a way to make a macro that removes duplicates from any table, based on a single column? Say that the column header is "MyColumn". Basically what I do right now is drill into a bunch of pivots all the time and end up removing duplicates to get isolated values for "MyColumn". I still want that message to pop up that says "10 duplicate values removed; 5 values still remain" or whatever it says.

    Any help would be much appreciated!

    Thanks.

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Remove duplicates from table by only one column

    Hi,
    You said that now you use pivots to "remove duplicates", does this mean that there is need to sum some values?
    Please attach small sample file with some dummy data with duplicates and manually make a table you wish to get.

  3. #3
    Registered User
    Join Date
    11-22-2016
    Location
    New York, NY
    MS-Off Ver
    2016
    Posts
    37

    Re: Remove duplicates from table by only one column

    I think I was able to upload an attachment. So on Sheet4 there is a pivot that has Count of MyColumn. What I end up having to do all the time is drill into the pivot and remove duplicates from the drill-down data to get count of unique values. The answer I really want is 3, but count gives me 7.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-22-2016
    Location
    New York, NY
    MS-Off Ver
    2016
    Posts
    37

    Re: Remove duplicates from table by only one column

    Maybe I don't even need a macro for this? I am essentially looking for count of unique values.

+ 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. Remove Duplicates in column and remove blanks
    By geliedee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2015, 07:25 AM
  2. Replies: 5
    Last Post: 05-08-2014, 07:24 AM
  3. [SOLVED] Look at column in table, remove duplicates and sort to another table
    By pdx-adm-trm01 in forum Excel General
    Replies: 1
    Last Post: 03-19-2014, 06:56 PM
  4. Replies: 1
    Last Post: 11-02-2012, 12:18 AM
  5. macro to select table and remove duplicates problem.
    By 0lzi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2011, 05:59 AM
  6. Remove duplicates in column D
    By maxebi in forum Excel General
    Replies: 3
    Last Post: 03-02-2009, 02:36 AM
  7. Possible To Remove Duplicates In A Column
    By fredmeister in forum Excel General
    Replies: 3
    Last Post: 04-02-2008, 05:19 PM

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