247888.XYZ

Compare Two Excel Files

Compare two Excel worksheets by a shared ID. See the old and new values for changed cells, and take away a report that also records added and removed items.

Compare two revisions

Result

Loading tool controls…

Your result will appear here. Choose Try sample to see an example.

Both workbooks stay in the browser. The comparison reads stored cell values and cached formula results.

Report a problem with this tool

Tool guide by · Reviewed

How to use Compare Two Excel Files

  1. Pick sheets
    Earlier
    Stock
    Revised
    Stock

    Pick sheets

    Select the workbook from before the change on the left and the revised workbook on the right. Reversing them also reverses what the report calls added and removed. Keep both original filenames handy if you will send the report to someone else.

  2. Key
    Heading
    SKU
    Example
    A1

    Key

    Choose the worksheet in each workbook and enter the exact ID column heading. Look for a value assigned once to each item, such as a product code. A product name shared by several sizes is a poor match key.

  3. Report
    Preview
    100 lines
    Download
    CSV

    Report

    The preview shows up to one hundred report lines. Download the CSV for the full comparison. Filter the Status column to examine removals first if an unexpected deletion would be more expensive than a small price change.

Follow a stock count after someone sorts the sheet

The sample starts with two products. A1 has ten units and B2 has four. The revised sheet lists C3 first and A1 second. A1 now has twelve units. Comparing row two with row two would tell you that nearly everything changed. Comparing by SKU gives a shorter explanation. A1 gained two units, B2 left the list and C3 appeared with eight units.

Find the line for A1 and the Units column. Earlier should read 10 and Revised should read 12. Now find the rows for B2. An empty revised value for a removed item means the record is absent from the newer sheet. It does not establish that the warehouse has zero stock. Someone might have archived the product, moved it to another worksheet or exported only active items. Check those possibilities before ordering replacements.

Stock count
Earlier A1
10
Revised A1
12
Stock count

Keep an identifier intact through two exports

A staff number written as 0017 is different from the text 17. If a spreadsheet stores the number seventeen and uses formatting to display two leading zeros, the stored value can differ from the label a person sees. Choose a key whose stored meaning is consistent on both sides. For a recurring export, ask the source system to write employee numbers as text.

If almost every row looks added or removed, inspect just one ID from each file. Look for extra spaces, a changed prefix, or a worksheet filtered to a different department. Correct the source of the discrepancy before investigating hundreds of cells. The CSV and Excel converter can help when one party sent a CSV, but take care with identifiers during that conversion. Keep the originals so you can trace the figures back to their source.

A report can also explain why an apparent change disappeared. If someone moved A1 to a different row and adjusted only its cell color, there should be no changed value for A1. Try this on a copy with two or three rows before using the report to settle a disputed inventory count.

Changed list
Removed
B2
Added
C3
Changed list

Why can one record produce several lines?

Why can one record produce several lines?

A modified record produces one line for every changed column. An added or removed record shows its fields separately so you can reconstruct what was present in that version. Count distinct IDs when someone asks how many products changed. Counting report lines answers a different question.

How are formulas compared?

The reader uses the last result saved with a formula. Open both workbooks in the spreadsheet program that owns them, recalculate and save copies first if those results may be stale. A rewritten formula that still returns the same value can produce no difference here.

Checking reordered inventory rows
SituationWhat to check
Same SKU moves from row 4 to row 20Match on SKU. A new row position alone should leave the stock value unchanged.
The revised sheet contains the SKU twiceResolve the duplicate or choose a genuinely unique key before trusting the comparison.

Where are your records processed?

Both workbooks stay in the browser. The comparison reads stored cell values and cached formula results. Privacy policy.

  1. Choose revisions
  2. Identify the rows
  3. Inspect the changes

Compare Two Excel Files questions

Do the columns have to stay in the same order?

Column names match the fields. You can move Price from column C to column F and still compare its values. Keep the names consistent. Renaming Price to Retail price makes them two separate fields.

Why did the tool reject duplicate IDs?

Two rows with the same key leave no reliable way to pair them after a reorder. Use a more specific column, or add a unique ID to working copies of both files. Simply deleting the second row can hide a genuine transaction.

Will it check colors or comments?

This report covers values. A new fill color, font or handwritten note on a printed copy will not appear. If color means approved in your process, record that decision in a status column before comparing revisions.

Related tools