Reviewing an Excel change in a pull request when git says "binary files differ"
A pull request touches a spreadsheet. The diff tells you the file changed and nothing else, because an .xlsx is a zip of XML and git treats it as a binary file. Somebody has to open both versions in Excel and compare them by eye. If you keep pricing tables, test data or config sheets in a repository, you know this problem.
Before building anything I wrote down what a useful spreadsheet diff would need:
- Cell level. Which cell, old value, new value. A changed formula is reported separately from a changed value.
- Rows lined up by content. If one row is inserted near the top and the diff marks every row below it as changed, nobody reads the result.
- No false alarms from formulas that only moved.
=B4*C4becoming=B5*C5because its row shifted down is not an edit. - Sheet-level changes: added, removed and renamed sheets.
- Something short you can paste into the PR description.
Rules I set for the viewer
A diff needs a viewer underneath it, and I was strict about what it must not do. It never writes to the workbook and never keeps it locked, so Git, Excel and your build can replace the file at any time. It never opens .csv or .tsv files, so those keep opening the way they do today. And the free viewer never shows a license popup.
It also had to cope with size. Sheets load in the background and the grid draws only the visible cells, so a 200,000-row sheet (1.6 million cells) opens without freezing the IDE.
What I built
I'm an engineering student, and I built Cellwise, a plugin for IntelliJ IDEA, PyCharm, WebStorm and the other JetBrains IDEs (2024.2 or newer). The viewer is free. It shows all sheets as tabs, including hidden ones, with frozen panes, merged cells and values formatted the way Excel shows them, plus a formula bar, find across all sheets and copy as tab-separated text that pastes back into Excel.
The diff is Pro. It opens by itself for changed .xlsx files in the commit dialog, the Git log, file history and Compare Files (Ctrl+D), instead of "binary files differ". Added, removed, value-changed and formula-changed cells each get their own colour, there is a list of every changed cell, and "Copy Changes as Markdown" gives you text for the pull request. Without a license the diff still gives you the summary line, for example "2 sheets changed: 3 values, 2 formulas, 1 row added."
Limits, so you know before installing: old .xls files and password-protected workbooks are not read. Charts, images and conditional formatting are not drawn. Formulas are not recalculated, so you see the values Excel saved.
Plugin page: https://plugins.jetbrains.com/plugin/36371-cellwise-xlsx-viewer--diff
How does your team review a changed spreadsheet today? I'd like to know which of the limits above would stop you.
Disclosure: I made Cellwise, and AI helped me write this.
Comments
Join the discussionNo comments yet. Be the first to comment.