Find the differences between 2 Excel worksheets?

后端 未结 19 1431
小鲜肉
小鲜肉 2020-12-08 03:38

I have two excel files with the same structure: they both have 1 column with data. One has 800 records and the other has 805 records, but I am not sure which of the 5 in t

19条回答
  •  孤街浪徒
    2020-12-08 04:24

    I found this command line utility that doesn't show the GUI output but gave me what I needed: https://github.com/na-ka-na/ExcelCompare

    Sample output (taken from the project's readme file):

    > excel_cmp xxx.xlsx yyy.xlsx
    DIFF  Cell at     Sheet1!A1 => 'a' v/s 'aa'
    EXTRA Cell in WB1 Sheet1!B1 => 'cc'
    DIFF  Cell at     Sheet1!D4 => '4.0' v/s '14.0'
    EXTRA Cell in WB2 Sheet1!J10 => 'j'
    EXTRA Cell in WB1 Sheet1!K11 => 'k'
    EXTRA Cell in WB1 Sheet2!A1 => 'abc'
    EXTRA Cell in WB2 Sheet3!A1 => 'haha'
    ----------------- DIFF -------------------
    Sheets: [Sheet1]
    Rows: [1, 4]
    Cols: [A, D]
    ----------------- EXTRA WB1 -------------------
    Sheets: [Sheet1, Sheet2]
    Rows: [1, 11]
    Cols: [B, K, A]
    ----------------- EXTRA WB2 -------------------
    Sheets: [Sheet1, Sheet3]
    Rows: [10, 1]
    Cols: [J, A]
    -----------------------------------------
    Excel files xxx.xlsx and yyy.xlsx differ
    

提交回复
热议问题