Skip to main content
SheetTidy

Compare two Excel files and see what changed

Match rows by an ID column, spot added, removed and edited rows, and download a report that lists every changed cell.

  1. 1
  2. 2
  3. 3
  4. 4

Drop your Excel or CSV files here

Add the original file and the changed file, together or one at a time.

XLSX, XLSM, XLS, ODS, CSV, TSV or JSON

Your file never leaves your device

How to use this tool

  1. Step 1: Add both files

    Drop the original file and the changed file together, or one at a time. Two sheets of the same workbook work too. Use Swap files if you put them in the wrong order.

  2. Step 2: Choose how rows are matched

    Keep "By a key column" and tick an ID column such as SKU, or leave every box unticked and let the tool pick one. Choose "By position" only when rows are in the same order in both files.

  3. Step 3: Read the summary and preview

    The summary counts rows added, removed and changed. Use Show sheet to look through each part of the report, with changed cells highlighted on screen.

  4. Step 4: Download the report

    Save the comparison workbook. It has separate sheets for changed, added and removed rows, plus a Cell changes sheet with the old and new value of every edited cell.

How to compare two files manually in Excel

Excel has no single button that answers “what changed between these two versions?” for everyone, but you can get most of the way with a few techniques.

Look at them side by side

Open both workbooks, then on the View tab, in the Window group, click View Side by Side. Turn on Synchronous Scrolling in the same group so both windows move together. To compare two sheets of one workbook, first click View › New Window so the workbook opens twice, then pick a different sheet in each window. This is fine for twenty rows. For two hundred, your eyes will miss things.

A difference sheet with a formula

Add a third sheet and put this in cell A1:

=IF(Sheet1!A1<>Sheet2!A1,"Old: "&Sheet1!A1&" New: "&Sheet2!A1,"")

Fill it across and down to the size of your data. Every cell that differs shows its old and new value; the rest stay blank. The catch is that it compares cell A5 with cell A5. If one row was inserted or deleted, or the second file is sorted differently, every row below that point shows up as changed even though nothing really did.

Conditional formatting

To colour differences in place, select the data on the first sheet, choose Home › Conditional Formatting › New Rule › Use a formula to determine which cells to format, and enter something like =A1<>Sheet2!A1. It has the same weakness: it only works when the rows line up exactly.

Lookup formulas for added and removed rows

To find IDs that exist in one file but not the other, add a helper column next to the first list with =ISNA(XLOOKUP(A2,Sheet2!A:A,Sheet2!A:A)) in Excel for Microsoft 365 or 2021, or =ISNA(VLOOKUP(A2,Sheet2!A:A,1,FALSE)) in older versions. TRUE means the ID was removed. Repeat in the other direction to find added rows. You then need more lookups, one per column, to spot edited values.

Spreadsheet Compare

Some Windows editions of Office include a separate Spreadsheet Compare app and an Inquire add-in that can be switched on under File › Options › Add-ins › COM Add-ins. They are only available in Microsoft 365 Apps for enterprise and Office Professional Plus, so many home and small-business users will not have them.

When this tool helps

Supplier price lists. A vendor sends this month’s list and you need to know which prices went up before you update your own. Matching on SKU shows exactly which products changed price, which were dropped and which are new, even if the supplier re-sorted the list.

Stock reports. Compare yesterday’s stock export with today’s to see which items moved, without scanning every line.

A colleague’s edited copy. You shared a sheet and got it back “with a few fixes”. The Cell changes sheet tells you precisely which cells they touched and what the values were before.

Bank and vendor master data. Payment details are a common target for fraud and simple mistakes. Comparing the current vendor list with last quarter’s copy flags any changed account number for a second look.

Before and after a cleanup. After trimming spaces or fixing dates, compare the cleaned file with the original to confirm only the intended cells changed.

Audit trails. Keep the comparison workbook alongside the two versions as a dated record of what was edited and when.

What the report contains

The download is a workbook named after your original file, for example price-list-v1-comparison.xlsx, with four sheets:

  • Changed lists each changed row as it appears in the changed file, with an extra Changed columns column naming which fields differ.
  • Added holds rows found only in the changed file.
  • Removed holds rows found only in the original file.
  • Cell changes has one line per edited cell: the key, the column, the original value and the new value. Filter it by column to see, say, every price change at once.

With the sample price lists, the summary reads: “Compared by SKU: 1 row added, 1 removed and 2 changed (2 cells). 1 row is the same.” One price went from 240 to 260, one stock count dropped from 80 to 64, SKU-003 was removed and SKU-005 was added.

Getting a clean comparison

Pick a key that truly identifies each row, such as an order number, SKU or employee ID. Names make poor keys because two people can share one and spellings drift. If the summary warns about repeated keys, remove duplicates from both files first. And if one file stores numbers as text, you do not need to fix that beforehand: the comparison already treats 1250 and “1250” as equal, so you only see real changes.

Frequently asked questions

What if the rows are in a different order in each file?

Match by a key column. Rows with the same ID are compared with each other wherever they sit, so sorting one file differently does not create false differences.

How does the tool choose a key column on its own?

It looks for a column, present in both files, that has a different value in every row of each file. If several qualify, it prefers the one whose values overlap most between the files, and an ID-like name wins a tie. If none qualifies, it compares by row position and says so in the summary.

Are 1250 and "1250" counted as a change?

No. Numbers and text are compared by how they read, so a price stored as a number in one file and as text in the other is treated as the same value.

Why are there no colours in the downloaded workbook?

SheetTidy keeps your data, not formatting, so the highlights appear only in the on-screen preview. The Cell changes sheet exists for this reason: it lists the key, column, original value and new value of every edited cell.

What happens to columns that exist in only one file?

They are not compared. Columns are matched by header name, ignoring capitals and spaces, and the summary tells you how many columns were left out because they appear in just one file.

Can the same ID appear more than once?

Yes, but it makes matching less certain. Repeated keys are paired in the order they appear, and the summary warns you. Removing duplicates first usually gives a cleaner comparison.

Do differences in spacing or capital letters count?

Extra spaces are ignored by default, so "Blue Mug " equals "Blue Mug". Capital letters do count by default; tick Ignore capital letters under More options if "blue mug" should equal "Blue Mug".