Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Comparing Spreadsheets

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can compare Excel spreadsheets to find differences in values, formulas, or formatting. The most reliable method is using the built-in 'Compare and Merge Workbooks' feature, but for simple value checks, the 'Conditional Formatting' rule is often faster. Before starting, ensure both files are saved in a compatible format, such as .xlsx or .xls, and that both workbooks are open in the same instance of Excel.

What You'll Need

  • Two Excel workbooks containing the same type of data (e.g., a source file and a revised version).
  • A computer running Microsoft Excel (desktop version recommended for full functionality).
  • A stable internet connection if you are using the web version of Excel.
  • Basic knowledge of Excel functions like VLOOKUP or SUMIFS is helpful but not required.

Step-by-Step

  1. Prepare Your Files: Open both spreadsheets you wish to compare. Save them as .xlsx files to avoid compatibility issues with macros or older features. Ensure that the data is aligned in the same columns and rows as much as possible. For example, if you are comparing a list of customers, Column A should list names in both files.
  2. Open the Compare and Merge Workbooks Feature: Go to the 'Review' tab in the Excel ribbon. In the 'Compare and Merge' group, click on 'Compare and Merge Workbooks'. This will open a dialog box where you can select the files to compare. Note that this feature is available in the desktop version of Excel.
  3. Select the Original and Revised Files: In the dialog box, use the 'Original workbook' dropdown to select your source or master file. Then, use the 'Revised workbook' dropdown to select the file that has been updated or modified. Ensure that the 'Show changes in' dropdown is set to the workbook you want to see the differences highlighted in.
  4. Choose Comparison Options: Click the 'Advanced' button in the dialog box. Here, you can specify how Excel should compare the files. You can choose to compare values, formulas, formatting, and structure. For a quick visual check, you may only need to compare 'Values' and 'Formulas'. If you are only interested in changes in cell values, you can uncheck 'Formatting' and 'Structure' to speed up the process.
  5. Review the Comparison Results: After clicking 'OK', Excel will open a new workbook containing the comparison results. This workbook will display the differences between the two files. You will see a side-by-side view or a summary of changes. For example, if a cell in the revised workbook has a different value than the original, Excel will highlight it in a specific color, such as red or green. The 'Reviewing Pane' at the bottom of the window will show a list of all changes, including the cell address, the old value, and the new value.
  6. Navigate and Analyze Changes: Use the 'Previous' and 'Next' buttons in the 'Reviewing' group on the ribbon to move through the changes one by one. Click on a highlighted cell to jump to that specific location in the revised workbook. You can also use the 'Find' feature to search for specific values or error messages in the comparison results. This allows you to quickly identify and verify each change.
  7. Merge the Changes (Optional): If you want to apply the changes from the revised workbook to the original workbook, you can do so. In the comparison results workbook, click the 'Compare and Merge Workbooks' button again, but this time, select the original workbook as the target. Excel will prompt you to confirm that you want to merge the changes. Click 'OK' to proceed. Note that merging will overwrite existing data in the original workbook with the new data from the revised workbook.

Common Mistakes

One of the most common mistakes is failing to align the data correctly before comparison. If the column headers are in different orders, or if there are extra columns in one file, Excel may misinterpret the data and report false differences. Always ensure that both files have the same structure and that the data is sorted in the same way. Another mistake is not saving the original file before merging, which can lead to accidental data loss if the merge goes wrong. Always keep a backup of your original data.

Tips

For large datasets, using the 'Conditional Formatting' rule is often more efficient than the 'Compare and Merge Workbooks' feature. To do this, select the data range in one workbook and create a new conditional formatting rule using the 'Use a formula to determine which cells to format' option. Enter a formula like `=A1<>[OriginalWorkbook.xlsx]Sheet1!$A$1` (assuming you are comparing the first cell of Column A in both workbooks). This will highlight any cell that does not match the corresponding cell in the original workbook. This method allows you to compare just the values you care about without the overhead of the full comparison tool.

Troubleshooting

If you cannot find the 'Compare and Merge Workbooks' button, check if you are using a Mac version of Excel. This feature is primarily available on Windows. If you are on a Mac, consider using the 'Spreadsheet Compare' tool that comes with Microsoft Office for Mac, or use the web version of Excel which offers similar functionality. If the comparison results show no differences even though you know there are changes, ensure that you have selected the correct files in the dialog box and that you have chosen to compare 'Values' and 'Formulas'. Sometimes, Excel may ignore changes if the formatting or structure is different, which can be adjusted in the Advanced options.

Frequently Asked Questions

Can I compare Excel files on a Mac?

Yes, but the feature is less integrated. You can use the web version of Excel or third-party add-ins. The 'Compare and Merge Workbooks' button is typically missing in the Mac desktop application.

Why does the comparison show no changes?

This usually happens if the files are saved in different formats (like .xlsx vs .xls) or if you haven't selected to compare 'Values' and 'Formulas' in the advanced settings. Check that the data is aligned and that the comparison options are correct.

How do I compare two columns in Excel?

You can use the conditional formatting method described in the 'Tips' section. Select the first column, create a conditional formatting rule with a formula referencing the corresponding cell in the second column, and set a highlight color.

Is there a way to compare formulas as well as values?

Yes, in the 'Advanced' settings of the Compare and Merge Workbooks dialog, you can check the 'Formulas' box to include formula differences in the comparison.

What happens if I merge two workbooks with the same name?

Excel will create a new file with a name like 'Workbook1 (2).xlsx'. It will not overwrite your original files, which helps prevent accidental data loss during the process.