+ Reply to Thread
Results 1 to 5 of 5

Deleting duplicates with a repeated address

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Dearborn Hts, MI
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Deleting duplicates with a repeated address

    I have a list of 8000 clients and about 1/3 of them have duplicate addresses, but with different names. Is there a way to use the delete duplicate feature to delete the repeated addresses in that addresses column and at the same time delete the whole row that the duplicated address is on?

    Thanks

    Jade

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Deleting duplicates with a repeated address

    hi Jade, welcome to the forum. The "Remove Duplicate" feature in Excel 2007 & above does do that. not sure if you're referring to the same one. go to Data-> Remove Duplicates. Check the option that "My data has headers". Check only the "Address" to indicate that it is only considered a duplicate when the address is duplicated.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-26-2012
    Location
    Dearborn Hts, MI
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Deleting duplicates with a repeated address

    Hi, I tried that, but whats happening is that its only deleting a select few out of all the duplicate addresses when I choose to select all the headers. When I select the address column alone it only removes the duplicates from that column but the names stay in place instead of also being removed. What I need it to do is delete the duplicate addresses and delete that the entire row that the duplicate was on.

  4. #4
    Registered User
    Join Date
    10-26-2012
    Location
    Dearborn Hts, MI
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Deleting duplicates with a repeated address

    so in other words, I need the rows with the same addresses but with different names deleted to only have the one name and one address.

    I have a lot of duplicate addresses with different names. I just want to keep one name and one address.
    I have over 7000 entries that looks like this:
    _ A__________B___________C_______D____E______F
    1
    2 Last Name__First Name___Address__City__State__Zip
    3 Smith______John________123 A____Det__MI_____48227
    4 Smith______Joe_________123 A____Det__MI_____48227
    etc.

    Is there a script or a formula that I can use to help me out with this
    Last edited by jadegreenwolf; 10-26-2012 at 01:51 PM.

  5. #5
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Deleting duplicates with a repeated address

    Depending on how your database is set up perhaps a macro like this could do the job.

    Please Login or Register  to view this content.
    The macro just adds address, city, state and zip to a string and compares this with the row above also combined to a string. If the two rows (strings) match then
    the last row gets deleted. So if your data is "groped" i.e. if 3 persons living at the same address are say on row 12, row 13 and row 14 the this macro will work.

    If your data is not organized this way then you could use a helper row where you combine the values from row c, d, e, and sort you data and then use "deleting duplicates" as benishiryo suggested.

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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