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

前端 未结 21 1509
醉话见心
醉话见心 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:06

    If you're using Java, you could try simple-excel.

    It'll diff spreadsheets using Hamcrest matchers and output something like this.

    java.lang.AssertionError:
    Expected: entire workbook to be equal
         but: cell at "C14" contained <"bananas"> expected <nothing>,
              cell at "C15" contained <"1,850,000 EUR"> expected <"1,850,000.00 EUR">,
              cell at "D16" contained <nothing> expected <"Tue Sep 04 06:30:00">
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    

    I should qualify that we wrote that tool (like the ticked answer rolled their own).

    0 讨论(0)
  • 2020-12-04 05:06

    Diff Doc may be what you're looking for.

    • Compare documents of MS Word (DOC, DOCX etc), Excel, PDF, Rich Text (RTF), Text, HTML, XML, PowerPoint, or Wordperfect and retain formatting
    • Choose any portion of any document (file) and compare it against any portion of the same or different document (file).
    0 讨论(0)
  • 2020-12-04 05:08

    Hmmm. From the Excel menu choose Window -> Compare side by side?

    0 讨论(0)
  • 2020-12-04 05:09

    Newer versions of MS Office come with Spreadsheet Compare, which performs a fairly nice diff in a GUI. It detects most kinds of changes.

    0 讨论(0)
  • 2020-12-04 05:09

    xdocdiff plugin for SVN

    0 讨论(0)
  • 2020-12-04 05:10

    You can try this free online tool - www.cloudyexcel.com/compare-excel/

    It gives a good visual output online, in terms of rows added,deleted, changed etc.

    enter image description here

    Plus you donot have to install anything.

    0 讨论(0)
提交回复
热议问题