RowDiff

RowDiff

Compare two Excel sheets

Open both workbooks (or one workbook twice) above, pick the sheets and an ID column, and every changed cell is marked. Or do it by hand in Excel with the methods below.

Loading RowDiff…

RowDiff runs in your browser. If this message stays, JavaScript may be switched off.

First decide: same cells, or same rows?

There are two quite different questions hiding behind “compare two sheets”, and picking the wrong method is why most comparisons go wrong.

RowDiff does the second kind by default (choose a key column, or let it align rows in order like a text diff), and it handles the first kind too: with matching by position, two sheets with an identical layout line up row for row.

Method 1: a formula sheet (same layout only)

Add a new sheet to the workbook that holds both sheets (call them Old and New). In cell A1 of the new sheet, enter:

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

Fill it right and down to cover the used range. Every cell that differs now shows both values; matching cells stay blank. It is quick and it needs nothing installed, but it only works when both sheets are laid out identically, it says nothing about rows that moved, and with many columns the result sheet is hard to read.

Method 2: conditional formatting

To colour the differences in place, select the data on the New sheet starting from A1, choose Home › Conditional Formatting › New Rule › Use a formula to determine which cells to format, and enter =A1<>Old!A1 with a fill colour. Same limitation: it compares positions, not records. Sort one sheet differently and the whole sheet lights up.

Method 3: look up each row by its ID

When rows can move, match them by an identifier such as a SKU, invoice number or email address. On the New sheet, next to each row, look up the old value with XLOOKUP (or VLOOKUP in older Excel):

=XLOOKUP(A2, Old!A:A, Old!C:C, "not in old")

then compare it with the current value: =IF(C2=XLOOKUP(A2, Old!A:A, Old!C:C, ""), "", "changed"). You need one pair of formulas per column you care about, a second pass in the other direction to find rows that were deleted, and care with repeated IDs (a lookup only ever finds the first match). It works, but it is slow to build and easy to get subtly wrong.

Method 4: RowDiff (any layout, any order)

  1. Drop the first workbook on A and the second on B. If both sheets live in one workbook, open it on A and click Or compare another sheet of file A.
  2. Choose the sheet on each side. Columns are matched by their header names, so they can be in a different order.
  3. Pick the column that identifies a row under Match rows by. RowDiff suggests one when a column is unique on both sides and looks like an ID. Add a second column if a row is only unique by two values together (an order number plus a line number, say).
  4. Read the result: changed rows with each changed cell marked (old value struck through, new value below), added rows in green, removed rows in red. Click the counts to filter.

Numbers within a tolerance you set can count as equal, so rounding noise like 1.4500000000000002 against 1.45 doesn’t clutter the result, and you can ignore case and stray spaces. Switch to Formulas to see where a formula was edited even if it still returns the same number.

Open both files in RowDiff above

What gets compared

Cell values (as numbers, text, dates and TRUE/FALSE) or, in formula mode, the formulas themselves. Formatting, colours, comments and column widths are not compared. Hidden rows and columns are compared like any other. Blank rows are skipped, and the first non-blank row is used as the header row unless you untick First row is headers.

Comparing on screen is free for sheets up to 5,000 rows. To hand the result on, download a highlighted .xlsx report (changed cells filled, the old value in a cell note, a sheet listing every changed cell) or a CSV of just the differences. One credit covers a pair of sheets, with downloads repeated as often as you like.

Related: Compare two Excel files for differences · Reconcile two lists · Excel compare tools, free and paid

Free to compare. Pay only to export or go big.

One credit unlocks one pair of sheets: the highlighted .xlsx report and the CSV of differences, downloaded as often as you like, and files over 5,000 rows. No subscription; credits never expire.

Start hereFree

Compare files up to 5,000 rows on screen, as often as you like. No sign-up.

Try it
Occasional£5

10 reports · 50p each

For the odd month-end or supplier price list.

Buy 10 reports
Best value£15

50 reports · 30p each

For weekly reconciliations and audits.

Buy 50 reports

One credit = one report. Credits never expire.