+ Reply to Thread
Results 1 to 8 of 8

Excel Bulk Duplicate Find and Delete

  1. #1
    Registered User
    Join Date
    02-06-2019
    Location
    Brighton
    MS-Off Ver
    2000
    Posts
    3

    Excel Bulk Duplicate Find and Delete

    I have large a amount of data and I am having some issues with duplicates within the list. Basically, my list looks like this:

    Mobile Fname Sname
    7700900330 Cora smith
    7700900917 bob jane
    7700900881 jake hardy
    7700007311 larry malone
    7700900748 harry jordan
    7700900675 martin mchardy
    7700900917 sarah jane


    I want to be able to run a macro or write a formula which will look at collumn A and check for duplicates. As you can see in row 3 & 8 have the same mobile number but different people. I want to be able to run the macro so that it will look at all of collumn A and see that number 7700900917 appears twice and delete all of row 3 or 8 leaving one unique record. The reason i am trying to automate this, is because my records are over 800,000 and this will take much time. Also, data is not original data for DPA purposes.

    I hope my explanation of what I am attempting to achieve makes sense.

    Thankyou for any assistance you are able to provide.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,034

    Re: Excel Bulk Duplicate Find and Delete

    I'm not sure how fast it will work but try this macro on a copy of your file:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,787

    Re: Excel Bulk Duplicate Find and Delete

    If you want to delete all 3 columns try
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-06-2019
    Location
    Brighton
    MS-Off Ver
    2000
    Posts
    3

    Re: Excel Bulk Duplicate Find and Delete

    Thanks Mumps1

    This is sort of working, but it seems to find the duplicate and delete it and shift all of collumn A's numbers up rather than deleting the row containing the duplicate?

    Again thanks for your assistance.

  5. #5
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: Excel Bulk Duplicate Find and Delete

    What logic applies to which of a duplicate gets deleted??
    Please Login or Register  to view this content.
    You can clear data and return data from temp sheet to original sheet

  6. #6
    Registered User
    Join Date
    02-06-2019
    Location
    Brighton
    MS-Off Ver
    2000
    Posts
    3

    Re: Excel Bulk Duplicate Find and Delete

    Thanks nigelog,

    Ive tested the code you provided and it seems to work well. With regards to your question, it does not really matter which of the rows are deleted with duplicate numbers, as long as if there were two of the same records with same numbers, that one of them was deleted.

    A couple of questions if i may:
    If for some reason a record appeared three times with the same number, would two of the rows be deleted?

    also, when I tested the code the first time it worked, but when attempting to input new raw data and test the code again I get 'Run-time error 1004', any ideas?

    Thanks again for your help, its much appreciated.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,787

    Re: Excel Bulk Duplicate Find and Delete

    Did you try my suggestion in post#3?

  8. #8
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: Excel Bulk Duplicate Find and Delete

    temp page probably exists no error trap for that

+ 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. Find duplicate and delete both? Please help me.
    By Getsome in forum Excel General
    Replies: 6
    Last Post: 09-25-2018, 10:00 AM
  2. Need to add duplicate rows in bulk
    By abbas99 in forum Excel General
    Replies: 6
    Last Post: 05-03-2018, 02:21 AM
  3. [SOLVED] find duplicate rows and delete when = 1
    By grzecheem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-23-2015, 02:42 AM
  4. Replies: 0
    Last Post: 01-21-2015, 07:05 AM
  5. [SOLVED] How do I find duplicate rows in a list in Excel, and not delete it
    By Matthew in FL in forum Excel General
    Replies: 6
    Last Post: 12-12-2012, 02:27 AM
  6. How to find duplicate entries, find which has the lowest value, and delete the rest?
    By John2810 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-05-2011, 06:39 AM
  7. how to do Bulk find and replace in excel?
    By aemunathan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-14-2009, 02:50 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