+ Reply to Thread
Results 1 to 4 of 4

Compare two rows and copy only changes from the columns

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    muzaffarabad ak
    MS-Off Ver
    Excel 2003
    Posts
    30

    Compare two rows and copy only changes from the columns

    hi there
    i need to compare two columns.. i.e if a1=b1 then do nothing and compare a2 with b2. if found any change then copy the cell to other worksheet and keep looking for changes in the entire row and then copy changes in a pattern.. for example

    SHEET 1 CONTAINS DATA
    A B C D
    1 X X
    2 X Y
    3 Z Z
    4 Z X

    SHEET 2 SHOULD GET COPIED DATA IF FOUND ANY CHANGE

    A B C D
    1 X Y
    2 Z X
    3
    4

    I need data in descending order so that it should only contain the changes in the lists..
    Last edited by JBeaucaire; 07-26-2012 at 09:00 PM. Reason: Corrected thread title to topic only, as per forum rules

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Compare two rows and copy only changes from the columns

    Hi ahsanzafar,

    Based on how you've shown the layout of your data, the following will do the job:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    07-26-2012
    Location
    muzaffarabad ak
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Compare two rows and copy only changes from the columns

    Thanks buddy..
    your code is working for me..
    i need it to be refined..
    see the attachment and suggest if i have about 32 lakh entries in multiple files to compare with each other. these are voter lists of recent elections and i have to figure out the mistakes in them. may be you have a suggestion
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Compare two rows and copy only changes from the columns

    may be you have a suggestion
    No, none I'm afraid

+ 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