Converter tool

Compare Two Excel Workbooks by Cell

Pair the sheets of two .xlsx files by name, list every cell whose value or formula text differs, and download B with those cells marked in yellow.

Sheets are paired by exact name. Values are compared as each file last saved them, and formulas are compared as text without being recalculated. Number formats, fonts, fills and borders are not compared. Up to 500,000 cells per comparison. Both files are opened by this browser tab.

Preview

Output Preview

Pick the original and the revised workbook, then press Compare to see which cells differ on each sheet.

Compare Two Excel Workbooks by Cell

Operator: Abdulla Al Fahad. How tools are built and checked

Two copies of the same budget come back from review, one named final and one named final-v2, and nobody remembers what changed between them. Scrolling both side by side catches the obvious edits and misses the single digit someone corrected on row 340. This page lines the two workbooks up sheet by sheet and walks every cell position in both, so a change to one number is reported as reliably as a rewritten column.

You get a count of changed cells for each sheet, the names of sheets that were added or deleted, and a table of differences showing the cell address with its old and new content. The download is a copy of the revised workbook where each differing cell is painted yellow, followed by a Differences sheet you can filter, sort or hand to a reviewer.

Key features

  • Sheets matched by name, with added and removed sheets listed separately
  • Union of both used ranges checked, so rows appended in B are not skipped
  • Each difference labelled Changed, Added in B or Removed in B
  • Formula text shown next to the value whenever either side holds a formula
  • Per-sheet table of changed, added and removed cell counts
  • First 500 differences on screen, every difference in the downloaded report
  • Report built from B's values with differing cells filled yellow, plus a Differences sheet

How sheets are paired and cells compared

Both inputs must be .xlsx workbooks, each 25 MB or smaller. Older .xls files and password-protected workbooks are stored in a different container and are turned away with a message asking you to resave them as plain .xlsx.

Sheets are paired by exact name, so Sales in A is compared with Sales in B. A sheet renamed to Sales 2025 counts as one sheet removed and one added. Inside each pair, the comparison covers the union of both used ranges: if A's data stops at row 40 and B's at row 52, rows 41 to 52 are checked too, and anything typed there shows up as added.

Numbers are compared by their stored value, text by its exact characters (case and spaces included), and TRUE or FALSE as booleans. Dates and times are compared by the serial number Excel stores behind them, so moving a time from 06:00 to 18:00 is caught even when the cell shows only the date, and showing the same date as dd/mm/yyyy instead of yyyy-mm-dd is not reported. When either cell holds a formula, the formula text is compared as well; a formula that was rewritten but still gives the same result is reported, with both versions of the formula shown.

One comparison may visit up to 500,000 cell positions, counted as the area of the combined used range of every paired sheet. Above that, the page names the total and stops before comparing anything.

How it works

When you press Compare, each file must open with the ZIP signature every .xlsx carries, and its size is checked against the 25 MB limit before the whole file is loaded. SheetJS then parses each workbook with formula reading switched on, keeping three things for every cell: the value Excel saved, the text it displays, and the formula behind it.

The page pairs sheet names, adds up the cell area it would have to visit, and stops if that exceeds 500,000. Otherwise it visits every row and column in each paired range and reduces both cells to a comparison key built from the cell type and the stored value: the number for numbers and dates, the characters for text, TRUE or FALSE for booleans and the error code for errors. The displayed text is kept only for the on-screen list and the report. A cell with no value and no formula, or holding an empty string, counts as blank. Two cells match only when both the key and the formula text are identical.

Nothing is recalculated. The values compared are the ones each workbook cached the last time it was saved, so a workbook saved with calculation set to manual can carry stale results, and those stale results are what gets compared.

The report is assembled with ExcelJS only when you ask for it. For each paired sheet it writes B's cached values, keeps number formats so dates still read as dates, and fills the cells from the difference list in solid yellow. The Differences sheet lists sheets present in only one file first, then one row per cell with both values and both formulas written as plain text.

Common use cases

  • Finding which figures a reviewer altered in a returned budget
  • Checking a price list before publishing it against last quarter's version
  • Confirming that a colleague's cleanup of a ledger only touched the rows it was supposed to
  • Spotting formulas that were overwritten with typed numbers between two versions of a model
  • Listing what an automated export changed from one month's workbook to the next

How to use this tool

  1. Put the older copy in the Workbook A slot and the edited copy in Workbook B. The order matters: Added and Removed are described from A's point of view.
  2. Press Compare. If a sheet appears under Removed sheets or Added sheets when you expected it to be paired, check whether it was renamed.
  3. Read the per-sheet table to see where the edits are concentrated, then scan the difference list for the cells you care about.
  4. Press Download highlighted report to save the yellow-marked copy of B with its Differences sheet.
  5. In the report, filter the Differences sheet by the Change column to review additions, deletions and edits separately.

Example

budget-a.xlsx and budget-b.xlsx, sheet Sales

A, sheet Sales:              B, sheet Sales:
A3 South   B3 120          A3 South   B3 130
A8 N4      B8 3            A8 N4      B8 3
(row 9 empty)              A9 Central

A also has a sheet named Old.

Comparison result

Sales: 1 changed, 1 added, 0 removed
Removed sheets (only in A): Old

Sales  B3  Changed     120      130
Sales  A9  Added in B  (blank)  Central

Tips for best results

  • Keep sheet names identical across versions. If one was renamed, rename it back in a copy before comparing so its cells are paired.
  • Open and save both files in Excel with automatic calculation on, so the cached values reflect the formulas.
  • If hundreds of cells differ in one column, look at the first few: a changed rounding or a shifted row usually explains them all.
  • A row inserted near the top of B shifts every cell below it, so the whole block reads as changed. Delete the row in a copy and compare again to isolate real edits.
  • Filter the report's Change column to Removed in B to check that nothing was deleted by accident.

Common pitfalls

The comparison is position by position. Sorting B differently from A, or inserting a row, makes every moved cell a difference even though no value was edited. Sort both copies the same way first.

Number formats and styling are not compared. Changing 0.5 to 50% or turning a cell red leaves no trace in the result, because the stored value is unchanged.

Text matching is exact: "Acme" and "Acme " with a trailing space are different, as are "acme" and "Acme".

Formulas are compared as written text. =A1+B1 and =B1+A1 give the same answer and are still reported as a change.

Values come from what each file last saved. A workbook produced by a script that writes formulas without results can have empty cached values, and those cells compare as blank.

Common errors and how to fix them

"Workbook B is an older .xls file or is protected with a password."
Excel wraps encrypted workbooks in the same container format as legacy .xls files, so both cases land here. Open the file, remove the password under the file's protection settings or use Save As with the .xlsx type, then choose the new copy.
The page says the sheets found in both workbooks cover more cells than the limit.
Often one sheet has a stray value or formatting far below the data, which stretches its used range. Delete the empty rows and columns past the real data in both files, save, and compare again; or remove sheets that do not need checking.
Every sheet is listed under Removed sheets and Added sheets.
The sheet names differ, perhaps by a trailing space or a changed year. Rename them to match in one copy and run the comparison again.
A whole column shows as changed although the numbers look the same.
The stored values differ beyond the digits on display, for example 12.5 against 12.4999. Widen the number format in both files to see the full values.

Best practices

  • Always put the earlier version in A, so Added and Removed describe the edit history correctly.
  • Keep the downloaded report with the two source files when you sign off a review.
  • Compare before reformatting a workbook, since style edits are invisible here but row moves are not.
  • Check the Removed sheets line first; a missing tab is easier to overlook than a changed cell.

What the yellow report contains

Each paired sheet in the report holds B's cached values at their original addresses with the original number formats applied. Formulas are not written into these sheets, so the report never recalculates and its numbers stay exactly as B saved them. Fonts, fills, borders and column widths from B are not copied; the only fill is the yellow on differing cells.

A cell that was removed in B is blank in the report but still yellow, so deletions are visible on the sheet as well as in the list. Sheets that exist in only one workbook are not reproduced; they appear as rows at the top of the Differences sheet.

Changed, added and removed

A cell is Added in B when A has nothing there and B has a value or formula. It is Removed in B when the reverse is true. Everything else that differs is Changed, including a cell whose number stayed the same but whose formula was edited, and a cell where a formula was replaced by a typed value.

  • Blank in A, filled in B: Added in B
  • Filled in A, blank in B: Removed in B
  • Filled in both, different value or formula: Changed

Frequently asked questions

Does it recalculate formulas?

No. It compares the formula text and the result each file saved. If you need fresh results, open the workbook in Excel, let it recalculate, save, and compare that copy.

Are cell colours or number formats compared?

No. Only values and formula text are compared. A cell restyled from plain to bold red, or from 0.25 to 25%, is not reported, because the stored value underneath is the same.

Can it pair sheets that were renamed?

Not automatically. Pairing is by exact sheet name; rename one side to match before comparing.

Do the workbooks leave my computer?

No. This tool writes nothing to localStorage, sessionStorage or IndexedDB, and both workbooks are read in this tab: SheetJS parses them, the comparison runs on the parsed cells, and ExcelJS builds the yellow report, which reaches your downloads through a short-lived object URL.