How do I create a readable diff of two spreadsheets using git diff?

前端 未结 21 1670
醉话见心
醉话见心 2020-12-04 04:27

We have a lot of spreadsheets (xls) in our source code repository. These are usually edited with gnumeric or openoffice.org, and are mostly used to populate databases for u

21条回答
  •  爱一瞬间的悲伤
    2020-12-04 05:32

    Quick and easy with no external tools, works well as long as the two sheets you are comparing are similar:

    • Create a third spreadsheet
    • Type =if(Sheet1!A1 <> Sheet2!A1, "X", "") in the top left cell (or equivalent: click on the actual cells to automatically have the references inserted into the formula)
    • Ctrl+C (copy), Ctrl+A (select all), Ctrl+V (paste) to fill the sheet.

    If the sheets are similar, this spreadsheet will be empty except for a few cells with X in them, highlighting the differences. Unzoom to 40% to quickly see what is different.

提交回复
热议问题