+ Reply to Thread
Results 1 to 6 of 6

Merge 3 worksheets into 1 workbook and delete duplicates

  1. #1
    Registered User
    Join Date
    10-06-2015
    Location
    Manhattan Beach, California
    MS-Off Ver
    Office 365
    Posts
    4

    Merge 3 worksheets into 1 workbook and delete duplicates

    I have 3 worksheets with similar information. Each worksheet has the same column titles, i.e. First Name, Middle Name, Last name, etc. I can copy and paste the information of Worksheet 1 into Worksheet 2 underneath the existing information, however, there may be duplicates. How do I delete duplicates in columns without it affecting the rows? For example, if A2 (Mary) and A7 (Mary) are the same first name, but C2 (Thompson) and C7 (James) are different last names, I do not want to delete box A7 (Mary) because then A8 (Jenny) will have moved up and will not correspond with C8 (Smith) anymore. It will look like I don't have Mary James, but now will have a Jenny James. I want the rows to be locked, but I want to delete duplicated data. For example, if after I copied and pasted Workbook 1 into Workbook 2 and I have two entries for John Doe, I want to eliminate one John Doe.

    Sorry if that was confusing, I wasn't sure how to explain it. I have attached an example work book where I want to combine worksheet 1 and 2 into worksheet 3. I want to keep the data on worksheet 1 and 2 separate and untouched from worksheet 3. I want worksheet 3 to be a combination of the first two without duplicate data. Please help!
    Test Contact Merge.xlsx

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Merge 3 worksheets into 1 workbook and delete duplicates

    Copy all the data from the three sheets into the new sheet.

    Then use Remove Duplicates on the Data tab. Unselect all columns then select First, Middle and Last Names

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-06-2015
    Location
    Manhattan Beach, California
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Merge 3 worksheets into 1 workbook and delete duplicates

    Okay so, I have done that with my test work book. After selecting the three columns, it removed the four duplicates I had. Now, I knew there were exactly 4 duplicates in the test because I created it. I don't know exactly how many duplicates there are in the real three worksheets I will be working with. Also, in the test workbook, when I completed the instructions you gave me - it only moved those three columns up. The other information pertinent to each person did not stay with those people. If you'll see in the v2 I have uploaded, there are now blank cells and floating data. I need to make sure the rows stay locked, or rather Mary stays with Ivers and the phone number, city, and email, etc. all stay with that same name. Does that make sense?Test Contact Merge v2.xlsx

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Merge 3 worksheets into 1 workbook and delete duplicates

    I'm guessing you had the three name columns selected on the worksheet. That wasn't what I meant. Don't do that. Unselect all the columns in the dialogue box and select the three name columns in the dialogue box

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Merge 3 worksheets into 1 workbook and delete duplicates

    You could use COUNTIFS to highlight duplicates:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down
    Last edited by TMS; 10-06-2015 at 07:22 PM.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Merge 3 worksheets into 1 workbook and delete duplicates

    I followed TMS directions with the addition of unchecking the headers box and it worked very nicely
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. Sum, Merge, Delete Duplicates
    By DeXTeR270 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2013, 08:37 AM
  2. [SOLVED] Need to merge duplicates in ColumnA, delete entries in ColumnB but keep unique in C
    By mdhillyer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-06-2012, 03:10 AM
  3. [SOLVED] Compare 2 worksheets and delete the duplicates from just one.
    By Lou54 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-27-2012, 08:30 PM
  4. Compare, Merge, Sum & Delete Duplicates
    By chancw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2011, 08:58 AM
  5. How to delete duplicates and merge data using a macro
    By lizanne113 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2011, 10:55 PM
  6. compare two worksheets and delete duplicates
    By wali in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-03-2010, 09:20 PM
  7. Merge Cells(maybe) then delete duplicates
    By J_Tackett in forum Excel General
    Replies: 4
    Last Post: 04-21-2010, 09:07 AM
  8. Merge Data from Multiple Worksheets with Duplicates
    By steve49589 in forum Excel General
    Replies: 2
    Last Post: 02-26-2008, 01:49 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