Forum Discussion

AmyBenjamin's avatar
AmyBenjamin
Copper Contributor
Oct 18, 2023

how to compare 2 excel files

After a crash, I save an excel file with a new name.  Then later on I used the old file with the original name and then the file saved with the new name, when I should have used only the newly named ...
  • NikolinoDE's avatar
    Oct 18, 2023

    AmyBenjamin 

    Comparing two Excel files can be a bit tricky, especially when dealing with large datasets.

    Comparing 2 different Excel files in this link you will find a solution proposal.

     

    Here's a more detailed solution using a third-party tool called "Beyond Compare." Beyond Compare is a powerful file comparison tool that can be used to compare Excel files effectively. Please follow these steps:

    1. Download and Install Beyond Compare:
    2. Open Beyond Compare:
      • Launch Beyond Compare after installation.
    3. Load Excel Files:
      • Click "File" > "Open" in Beyond Compare.
      • Browse and select the two Excel files you want to compare.
    4. Compare Files:
      • Beyond Compare will display the two files side by side. It will highlight differences between the files.
    5. Review Differences:
      • You can navigate through the differences using the interface.
      • Beyond Compare provides options to merge or copy content from one file to another.
    6. Save Merged File:
      • After comparing and resolving differences, you can save the merged file as a new Excel document.

    Please note that Beyond Compare is not a free tool, but it offers a 30-day trial, which should be sufficient for your needs. If you find it valuable, you can purchase a license.

    Using Beyond Compare or similar comparison tools can significantly speed up the process of comparing and merging Excel files, especially when dealing with a large number of records.

     

    If you prefer not to use third-party tools, you can perform a basic comparison of two Excel files using built-in features like conditional formatting. Here's a step-by-step guide:

    1. Open Both Excel Files:
      • Open the two Excel files you want to compare.
    2. Select the Target Sheet:
      • Choose one of the Excel files as your target, and this is where you will highlight the differences.
    3. Conditional Formatting:
      • Go to the target sheet, select the range of cells you want to compare, typically one column or multiple columns. For your case, it could be the entire dataset.
    4. Conditional Formatting Rules:
      • In Excel, go to the "Home" tab.
      • In the "Styles" group, click on "Conditional Formatting."
      • Choose "New Rule."
    5. New Formatting Rule Dialog:
      • In the "New Formatting Rule" dialog box, select "Use a formula to determine which cells to format."
    6. Compare Cells:
      • In the "Format values where this formula is true" field, enter a formula to compare cells between the two files. You'll want to use a formula that highlights cells where differences exist. For example:

    =A1<>[OtherFile.xlsx]Sheet1!A1

    This formula will highlight cells in the target sheet where the content in the same cell in the other file is different.

    1. Choose Formatting:
      • Click the "Format" button to choose how the highlighted cells should appear. For example, you can set the font color or cell fill color to something that stands out, like red or yellow.
    2. Apply Rule:
      • Click "OK" in the "Format Cells" dialog to set the formatting rule.
    3. View Differences:
      • Now, the cells with differences will be highlighted according to the formatting rule you set.
    4. Review and Resolve:
    • Go through the target sheet, and you'll see differences highlighted. You can then review and resolve them manually.

    This method is basic and will help you visually identify the differences between two Excel files. However, it won't provide a side-by-side comparison like third-party tools do, and you'll need to resolve differences manually. For very large datasets, a third-party tool might be more efficient.

    The text was created with the help of AI.

     

    My answers are voluntary and without guarantee!

     

    Hope this will help you.

     

    Was the answer useful? Mark as best response and like it!

    This will help all forum participants.

     

Resources