# How to Compare Two Excel Files and Highlight the Differences

Find changed cells, new rows and deleted rows between two spreadsheets, even when rows moved. Includes reconciling a bank export with your books. Free, no upload.

Two versions of a price list, a ledger and a bank export, last month's staff list and this month's: the question is always what changed. Here is how to get an exact answer without formulas.

## The short version

1. Open [compare Excel files](/excel/compare-excel-files/) and drop both files: the old one first, then the new one. CSV files work too.
2. Under **Match rows by**, choose the column that identifies a record: an ID, an invoice number, a product code or an email address.
3. Press **Compare files**.
4. Look through **Changed rows**, **Only in first file** and **Only in second file**, then download the result as Excel with the changes highlighted.

## Why not VLOOKUP or conditional formatting?

Formulas compare row 1 with row 1. As soon as someone inserts, deletes or sorts rows, every line below looks "different". VLOOKUP and XLOOKUP find missing records but not changed values, and they slow down on big files. The compare tool finds each record by its key wherever it sits, matches columns by their names even if they moved, and lists every change as *old → new*.

## Reconciling a bank export with your books

1. Export the bank transactions to Excel or CSV. If the bank only gives a PDF statement, convert it with [PDF to Excel](/pdf/pdf-to-excel/).
2. Find a column both files share, such as the payment reference. If there is none, add a column in both files that joins date and amount, for example `=A2&"|"&B2` with the date in A and the amount in B, and match on that.
3. Compare. **Only in first file** shows bank lines missing from the books; **Only in second file** shows entries the bank has not seen.

For payments that may have gone out twice, the [duplicate payments](/excel/duplicate-payments/) check is built for exactly that.

## Make the comparison fair

- Tick the options that make 10 and 10.00 the same, ignore upper and lower case, and trim extra spaces, unless those differences matter to you.
- Files with no key at all can be compared by **Row position**, but only if nobody sorted or inserted rows.
- To compare two sheets of one workbook, add the workbook twice and pick a different sheet on each.

## Where your file goes

Both files are read by your browser on your own device and never uploaded, which matters for salaries, customers and accounts.

## Questions

**Is there a row limit?** No fixed limit. Files with millions of rows work, more than Excel itself can open; the only limit is your device's memory.

**Does it compare formulas or values?** Values, as they appear in the cells. Two different formulas that give the same result count as the same.

**Can I send the result to someone?** Yes. The Excel download keeps the highlighted cells and adds a summary sheet with the number of changes.

Tool: [Compare two Excel or CSV files](https://pcmultiverse.com/excel/compare-excel-files/)
