Excel Diff
Compare two Excel or CSV files cell by cell: values, formulas, formats, inserted rows and columns, sheets and named ranges.
Install
irm https://raw.githubusercontent.com/chayprabs/localtools/main/excel-diff/install.ps1 | iexlocaltools-excel-diff updatelocaltools-excel-diff uninstall
curl -fsSL https://raw.githubusercontent.com/chayprabs/localtools/main/excel-diff/install.sh | bashlocaltools-excel-diff updatelocaltools-excel-diff uninstall
brew install chayprabs/localtools/localtools-excel-diffbrew upgrade localtools-excel-diffbrew uninstall localtools-excel-diff
scoop bucket add localtools https://github.com/chayprabs/homebrew-localtools; scoop install localtools-excel-diffscoop update localtools-excel-diffscoop uninstall localtools-excel-diff
winget install localtools.ExcelDiffwinget upgrade localtools.ExcelDiffwinget uninstall localtools.ExcelDiff
Opens at http://127.0.0.1:47109 in your browser. Run localtools-excel-diff --help for the command line. Set LOCALTOOLS_NO_OPEN=1 to install without opening it.
Direct download
| Platform | File | Size |
|---|---|---|
| Linux ARM64 | excel-diff-1.0.5-linux-arm64.zip | 4.3 MB |
| Linux x64 | excel-diff-1.0.5-linux-x64.zip | 4.7 MB |
| macOS Apple Silicon | excel-diff-1.0.5-macos-arm64.zip | 4.4 MB |
| macOS Intel | excel-diff-1.0.5-macos-x64.zip | 4.8 MB |
| Windows x64 | excel-diff-1.0.5-windows-x64.zip | 4.8 MB |
SHA-256 checksums are in the release notes; the install scripts verify them for you.
See it
How to use
- Run localtools-excel-diff (or open Excel Diff from your app menu); it opens in your browser.
- Drop the original workbook as A and the changed one as B (.xlsx, .xlsm or .csv).
- Optionally ignore whitespace, case, number formats or formulas, or give key columns (e.g. A) to match rows by ID, then press Compare.
- Pick a sheet and step through the highlighted changes with Previous/Next change; click a cell to see old and new value, formula and format.
- Download the report as JSON or CSV, or an annotated copy of B with changed cells highlighted. From scripts: localtools-excel-diff old.xlsx new.xlsx --json (exit code 1 when different).
FAQ
Does inserting a row make every cell below it look changed?
No. Rows and columns are aligned first (Myers diff over row hashes, like git diff), so an inserted or deleted row or column is reported once and the cells below are compared with their real counterparts.
Are numbers rounded?
Values are shown and exported exactly as stored in the file, so 12345678901234567890 stays intact. Equality uses the stored double, like Excel, so 0.1 and 0.10000000000000001 count as equal.
My rows were re-sorted. Can it still match them?
Yes: enter one or more key columns (for example A or A,C). Rows are then matched by those values, like a database diff, and only real changes are reported.
What else is compared besides cell values?
Formula text, number formats, optionally cell styles, sheets added/removed/renamed (renames are detected by content), defined names, merged ranges, data validations and comments.
Can it compare a CSV with a workbook, or .ods files?
CSV against CSV or against a workbook works (numbers compare by value). OpenDocument .ods and legacy .xls are not supported; save them as .xlsx first.