+ Reply to Thread
Results 1 to 3 of 3

De-duping and changing code for dupes

  1. #1
    Registered User
    Join Date
    12-08-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    1

    De-duping and changing code for dupes

    I have one excel 07 document which was 2 documents originally. I've merged it so it's one document. Now I need to get rid of the duplicates but where there is a duplicate I need to change the code in one column so I know it was on both lists originally - any ideas?

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: De-duping and changing code for dupes

    Do you still have the 2 original documents or is there a way for you to identify which row belongs to which of the 2 files?

    You need a small code that will combine the data again (if possible) and add a column that will denote the file number(whether 1 or 2). The code will then go thru each line and if it finds duplicates, update the code in the column required.

    Will this work? If yes, attach the sample files and i can help you out.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: De-duping and changing code for dupes

    Hi annes and welcome to the forum,

    I don't think you need VBA for this. A helper column with this at the top and then pull it down might work.
    Please Login or Register  to view this content.
    See the attached.

    All helper column numbers of 2 are duplicates of above. You could sort by the helper and then delete the dups if that is what you want.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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