+ Reply to Thread
Results 1 to 13 of 13

How To Compare 2 Spreadsheets?

Hybrid View

byepeeps How To Compare 2 Spreadsheets? 04-07-2010, 09:52 AM
NBVC Re: How To Compare 2... 04-07-2010, 09:56 AM
byepeeps Re: How To Compare 2... 04-07-2010, 10:01 AM
NBVC Re: How To Compare 2... 04-07-2010, 10:04 AM
byepeeps Re: How To Compare 2... 04-07-2010, 10:14 AM
NBVC Re: How To Compare 2... 04-07-2010, 10:26 AM
byepeeps Re: How To Compare 2... 04-07-2010, 10:54 AM
NBVC Re: How To Compare 2... 04-07-2010, 11:19 AM
byepeeps Re: How To Compare 2... 04-07-2010, 11:34 AM
NBVC Re: How To Compare 2... 04-07-2010, 11:44 AM
byepeeps Re: How To Compare 2... 04-07-2010, 01:32 PM
NBVC Re: How To Compare 2... 04-07-2010, 02:02 PM
byepeeps Re: How To Compare 2... 04-07-2010, 03:06 PM
  1. #1
    Registered User
    Join Date
    01-09-2007
    Posts
    43

    Question How To Compare 2 Spreadsheets?

    Hi,

    I have two sets of spreadsheets. One has new statistics the other has older statistics. The newer spreadsheet has additional rows. What I want to do is remove the newer additional rows so I can compare like with like.

    Here's an example

    S/sheet1
    Column C
    word1
    word1
    word1
    word2
    word3
    word3

    S/sheet 2
    Column C
    word1
    word1
    word1
    word8
    word
    word2
    word3
    word3
    word90

    As you can see s/sheet 2 has additional rows but also rows which match spreadsheet 1. I want to remove the entire rows in spreadsheet 2 that don't match spreadsheet 1, without affecting the other columns of data associated with the rows.


    Does any of that make sense? If so, how do I do this?

    Thanks,
    Alex
    Last edited by byepeeps; 04-07-2010 at 03:06 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How To Compare 2 Spreadsheets?

    Does it matter how many times a word is repeated? You have words repeating in both sheets it seems.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-09-2007
    Posts
    43

    Re: How To Compare 2 Spreadsheets?

    Quote Originally Posted by NBVC View Post
    Does it matter how many times a word is repeated? You have words repeating in both sheets it seems.
    Unfortunately it does and that's the real pain isn't it? The reason is because each word has different 'match types' which are given in a separate column.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How To Compare 2 Spreadsheets?

    So can you use the combination of the 2 columns (assuming that is unique) and compare with a combination in the other sheet?

  5. #5
    Registered User
    Join Date
    01-09-2007
    Posts
    43

    Re: How To Compare 2 Spreadsheets?

    I'm not sure how you mean. Would it be easier if I attached the spreadsheets?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How To Compare 2 Spreadsheets?

    Yes it always is....

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  7. #7
    Registered User
    Join Date
    01-09-2007
    Posts
    43

    Re: How To Compare 2 Spreadsheets?

    Hi,

    The dummy spreadsheet is now attached with most of the data deleted for privacy. It has two worksheets (old data and new data).

    Does this help?
    Attached Files Attached Files

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How To Compare 2 Spreadsheets?

    So now what columns are we comparing?

  9. #9
    Registered User
    Join Date
    01-09-2007
    Posts
    43

    Re: How To Compare 2 Spreadsheets?

    Ah sorry. The keyword column is the one we're comparing.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How To Compare 2 Spreadsheets?

    Hopefully this can do it...

    in AA2 of New Data enter:

    =ISNUMBER(MATCH(1,INDEX(('Old Data'!$C$2:$C$10='New Data'!C2)*('Old Data'!$D$2:$D$10='New Data'!D2),0),0))

    I used the Keyword and Keyword Status to determine uniqueness....

    You need to adjust the ranges for Old Data to suit...

    and copy down...


    This will give TRUE for matches found and FALSE for not found.

    Then you can Data|Filter|Auto Filter for False in AA and delete those rows.

  11. #11
    Registered User
    Join Date
    01-09-2007
    Posts
    43

    Re: How To Compare 2 Spreadsheets?

    Thanks for that it seems to work to some extent but doesn't give me all the matches. I can see one particular keyword on both sheets but it' coming out as FALSE.

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How To Compare 2 Spreadsheets?

    Is that in the sheet you attached or in your main sheet?

  13. #13
    Registered User
    Join Date
    01-09-2007
    Posts
    43

    Re: How To Compare 2 Spreadsheets?

    Scratch that. All sorted. Thanks for your help.

    Much appreciated.

    Alex

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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