Consulting

Results 1 to 4 of 4

Thread: Compare two sheets

  1. #1
    VBAX Regular
    Joined
    Apr 2011
    Posts
    20
    Location

    Compare two sheets

    Hi All,

    First of all, thanks to all contributors of this forum. Friends, this time I have to compare two excel sheets for data.

    1. Data may be modified in cells.
    2. Rows can be deleted
    3. Rows can be added

    So basically I have some data in old sheet but in new data sheet, some rows are added, deleted and modified. (Also the data may be sorted in the new data sheet so row sequencing could be different in both sheets)

    Please help me out with this..

    I have read somewhere this can be done via VLookUP..But i dnt know how..


    Please find the attached sample sheets.
    Attached Files Attached Files

  2. #2
    VBAX Expert shrivallabha's Avatar
    Joined
    Jan 2010
    Location
    Mumbai
    Posts
    750
    Location
    Do you want to compare a specific column or all columns?

    Suppose you want to check Column A (Name) "New Data" worksheet then in cell E2 paste following formula and copy it down:
    =VLOOKUP(A2,'Old Data'!$A$2:$A$5,1,0)
    Regards,
    --------------------------------------------------------------------------------------------------------
    Shrivallabha
    --------------------------------------------------------------------------------------------------------
    Using Excel 2016 in Home / 2010 in Office
    --------------------------------------------------------------------------------------------------------

  3. #3
    VBAX Regular
    Joined
    Apr 2011
    Posts
    20
    Location
    Thanks Shri!!!!

    But i have to compare the rows (All columns all together)...

  4. #4
    VBAX Expert shrivallabha's Avatar
    Joined
    Jan 2010
    Location
    Mumbai
    Posts
    750
    Location
    Even then it should be possible.
    Step 1] On Sheet "New Data" in cell E2, insert following formula
    =CONCATENATE(A2,B2,C2,D2)
    Copy down the formula to the bottom-most cell. Repeat the same for sheet "Old Data".
    Step 2] Now on Sheet "New Data" in cell F2, insert following formula:
    =VLOOKUP(E2,'Old Data'!$E$2:$E$5,1,0)
    Copy down to the bottom most row.
    Regards,
    --------------------------------------------------------------------------------------------------------
    Shrivallabha
    --------------------------------------------------------------------------------------------------------
    Using Excel 2016 in Home / 2010 in Office
    --------------------------------------------------------------------------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •