+ Reply to Thread
Results 1 to 7 of 7

Thread: Merging two excel sheets and deleting duplicate data

  1. #1
    Registered User
    Join Date
    01-20-2012
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Merging two excel sheets and deleting duplicate data

    Morning all,

    I have a large excel workbook which has two data dump sheets. In sheet 1 "WS Ref No." is column C and in sheet 2 "WS Ref No." is column A. What i want is someway of copying all of sheet 2's column A (and column B) and then copy any values from sheet 1 which are new (only new values in column C column also copy column D but D can be replicated).


    Sheet 1..... Sheet 2...... New Sheet
    C ......D .....A...... B...... A......... B
    1...... 1...... 1..... 1....... 1......... 1
    2 ......1...... 3..... 1....... 2......... 1
    3 ......1...... 4..... 2....... 3......... 1
    4 ......2...... 6..... 2...... .4......... 2
    5 ......2...... 7..... 3....... 5......... 2
    ...................................6........ 2
    ...................................7........ 3

    So in the above example only number 2 and 5 would be copied from sheet 1 to the new sheet.

    Finally is there any way to do this without macros or is a macro needed?

    Cheers, stu

  2. #2
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Merging two excel sheets and deleting duplicate data

    Hi stu and welcome to the forum

    You can do this, using formulas.

    Would you like to upload a sample workbook??
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  3. #3
    Registered User
    Join Date
    01-20-2012
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Merging two excel sheets and deleting duplicate data

    example3.xls

    Please see attached

  4. #4
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Merging two excel sheets and deleting duplicate data

    So let's see if i get your point.

    In Sheet3, Column C, put the formula:

    =IF(COUNTIF(Sheet3!$A$2:$A$566;Sheet1!C4)=0;Sheet1!C4;"")

    Copy down.

    Is this, what are you looking for??
    Attached Files Attached Files
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  5. #5
    Registered User
    Join Date
    01-20-2012
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Merging two excel sheets and deleting duplicate data

    Yes but ideally i want the values returned in column C added to the bottom of column A in sheet 3 so i have all the worksites in one column

    Also the problem is there won't necessarilly be 566 rows everytime it will change every week.

    Cheers, stu

  6. #6
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Merging two excel sheets and deleting duplicate data

    ..I need time to see it.. It's a little complicate...

    For the second request, you can change the range A2:A566, TO A:A.
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  7. #7
    Registered User
    Join Date
    01-20-2012
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Merging two excel sheets and deleting duplicate data

    ok 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.2.0