+ Reply to Thread
Results 1 to 11 of 11

how to delete BOTH duplicates? Please explain this to me like I'm 5.

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    18

    how to delete BOTH duplicates? Please explain this to me like I'm 5.

    Hey all. I've attached a test excel to this post. Column C contains several identical email addresses. I need ALL the rows containing the duplicate data removed, not leaving one remaining as Remove Duplicate Values normally does.

    I'm going to be doing this with many Excels all with differing amounts of data surrounding column C. I need a reliable way to achieve this, regardless of how many extra data columns exist. If there is a duplicate of data in column C, all rows containing that data need to go, regardless of what other data may also be present in those rows.

    If anyone can help I'd greatly appreciate it. I'm terrible with formulas, so please don't leave any part of the directions out.


    Much thanks.
    Last edited by FDibbins; 04-10-2014 at 07:53 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: how to delete BOTH duplicates? Please explain this to me like I'm 5.

    I have removed your workbook, it appears to contain valid email adresses. Please do not post sensitive info on public forums
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to delete BOTH duplicates? Please explain this to me like I'm 5.

    Insert a header row, insert a column, add a formula in A1

    =COUNTIF(D:D,D2)

    and copy down. Autofilter col A for anything but 1, and delete the rows that survive.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: how to delete BOTH duplicates? Please explain this to me like I'm 5.

    If you have duplicate items in a column (say, C), then try using this in a helper column, copied down...

    =COUNTIF($C$1:$C$2000,C1)

    Then apply filters, filter on >1, and delete what remains

    is there an echo in here...im he...im...i.......

  5. #5
    Registered User
    Join Date
    06-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: how to delete BOTH duplicates? Please explain this to me like I'm 5.

    oh sorry, i figured we were a trustworthy bunch here but i guess you never know.

    "insert header row" meaning create a new row up top and enter First Name, Last Name, Email, etc?
    "add a formula in A1" meaning paste =COUNTIF(D:D,D2) into A1? I already have values in A1. Does that matter?
    "copy down"... how do I do that?
    How do I autofilter col A?

    thanks again.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: how to delete BOTH duplicates? Please explain this to me like I'm 5.

    Because this is a public forum, anyone can sign-up and access files. This forum (or any other, I would say), cannot always vouch fotr its members - most are here to help/learn, but that cannot be said for all mebers, unfortunately Better to be safe than sorry

  7. #7
    Registered User
    Join Date
    06-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: how to delete BOTH duplicates? Please explain this to me like I'm 5.

    what's a helper column?
    how do i copy that formula down?
    how do i apply filters?
    how do filter on >1?

  8. #8
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: how to delete BOTH duplicates? Please explain this to me like I'm 5.

    Quote Originally Posted by dunndealpr View Post
    what's a helper column?
    how do i copy that formula down?
    how do i apply filters?
    how do filter on >1?
    Save your excel file before you do anything
    Go to your worksheet
    Select cell C1
    Then hold down ALT and pres F4

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: how to delete BOTH duplicates? Please explain this to me like I'm 5.

    A helper column is any (generally) empty column that you use to put in a formula to help with what you are trying to do. It is not part of your data and "helps" to correlate your data
    To copy the formula, highlight it from here, press CTRL C (copy), click where you want it to go, press CTRL V (paste), then paste all the way down
    To apply filters, on the HOME tab, click Sort and Filter (at the end), click Filter. You will then see small drop-down arrows at the top of your columns, click the 1 you want (the helper), uncheck 1, and click OK. You will now only see those rows with 2 or greater in them - delete those rows

  10. #10
    Registered User
    Join Date
    06-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: how to delete BOTH duplicates? Please explain this to me like I'm 5.

    when i uncheck 1 and click ok i'm left with only the rows with 0 in them.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: how to delete BOTH duplicates? Please explain this to me like I'm 5.

    OK then that means you do not have any duplicates. Find 2 entries that you think are duplicates - if the countif() records them both as 1, then take a close look at them to see what is different...maybe trailing/leading spaces?

+ 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. Macro to find duplicates, concatenate cells, then delete old duplicates
    By givemepuppies in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-04-2016, 02:43 AM
  2. [SOLVED] Macro to find duplicates, concatenate Unique Values, then delete old duplicates
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2013, 04:32 PM
  3. [SOLVED] Find duplicates, concatenate into different column, sum and delete duplicates
    By rosannang in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2013, 11:23 AM
  4. Replies: 17
    Last Post: 07-05-2011, 05:37 PM
  5. Replies: 11
    Last Post: 06-30-2011, 09:26 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