Compare Excel Files

Compare Excel files in Java

Comparing worksheets helps you to detect possible problems, such as extra entries, incorrect tables, inconsistent formulas, or improper formatting.GroupDocs.Comparison gives you many options for comparing a wide range of supported file formats, including Excel formats.

After the comparison, there are three colors on the resulting file that highlight the differences. You can also specify the colors yourself to identify the next difference:

  • Elements that were inserted in the first file. – blue, by default
  • Elements wich were deleted from the first file – red, by default
  • Elements that have changed their styles (font, color, etc.) – green, by default

Code sample to compare two Excel files

Source / Target / Result Excel files
Source
Target
Result

As a result, you have an Excel file with highlighted changes, in which the deleted elements are marked with a font red, the added – in blue, and the modified – in green.