Friday, 30 August 2019

microsoft excel - Compare two spreadsheets and get missing records


I have two CSV documents. The first has 10.000 rows with 50 columns, with the first column being a unique SKU (stock keeping unit). The second document with 9.500 rows using the same columns and identifiers.


I simply want to create a third document with the 500 missing records.


Is this possible with excel?



Answer




  1. First copy the second CSV (with 9500 rows) in a blank spreadsheet.

  2. Give a background color (say yellow) to the cells having content.

  3. Now copy the first CSV into the spreadsheet appending it to the bottom of the first CSV

  4. Use 'Remove Duplicates' (in 2007 you can find it in Data tab) feature on the entire spreadsheet.

  5. After remove duplicates has completed, cells not having the background color given in step (2) found at the bottom of the spreadsheet are the missing records


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...