Compare Two Sheets is part of Ablebits Ultimate Suite for Excel that can help you quickly find and highlight different rows or cells in two Excel worksheets and merge them manually cell by cell. Find answers to the most frequently questions about this tool on the Compare Two Sheets: FAQ page.
Please read carefully this part before you start working with the add-in.
The supported workbook formats are .xlsx and .xlsm. The tool won't process files of any other format, so be sure to save your workbooks as xlsx. or .xlsm. files.
Using the tool, you can compare worksheets stored in OneDrive, both in My files and Shared. However, make sure that shared files are synced and opened from your local device.
Before running Compare Two Sheets, save all changes in all open books and close all Excel workbooks except for those you are going to compare. If your task is to compare sheets from the same workbook, leave only this book open.
We care about your books and always create their backup copies. By default, we store the backups for 14 days.
Compare Two Sheets marks differences with a background color, bottom border, or font color replacing your coloring, fonts, or cell borders, so the colors you choose for marking differences should not coincide with your original formatting. Your original formatting will be restored as you review the differences.
Protected workbooks are not supported as we simply won't be able to mark differences in them :)
Worksheets with merged cells cannot be processed.
Please do not try to compare sheets that contain volatile functions, because every time Excel opens or recalculates the workbook, these functions return new values. The volatile functions are: NOW, TODAY, RAND, RANDBETWEEN, OFFSET, INDIRECT. Also, INFO and CELL can be volatile depending on their arguments.
Some differences are not shown: row height, column width, worksheet and workbook options and properties, all embedded objects including charts, pivot tables, images, shapes, controls, etc.
Compare Two Sheets is designed only to compare one sheet with another. Your worksheets should have the same layout and structure including grouping, filtering, and sorting. For example, we consider the rows order when comparing sheets, so sheets with different sorting order will most likely be perceived as completely different.
To run the add-in, on the Ablebits Data tab, in the Merge group, click Compare > Compare Two Sheets:
In the first window, you will see the list of limitations and requirements, please read them carefully:
Click the Agree button to continue.
In the list of open books, select the sheets you are going to compare. If the needed worksheet is not in the list, click the Open Workbook button above the list and open the Excel file you need.
By default, the tool compares the used ranges of the sheets. If you need to compare other ranges, click the Select range icon and choose the areas of interest. Also, you can pick a cell in the table and click the Expand selection icon to get the whole table highlighted.
After selecting the sheets to be compared, click the Next button to proceed.
On this step, you choose how to compare your sheets and select the matching options.
Look how it works in the Compare spreadsheets by all columns video.
To see how it works, watch the Compare sheets by key columns video.
Watch the Compare Excel files cell by cell video tutorial to see how to work with this option.
Checking line by line, Compare Two Sheets searches for differences, looking for pairs of similar rows in the sheets. But there are cases when one row in Sheet 1 corresponds to several rows in Sheet 2 with full or partial cell match. For such situations, Compare Two Sheets provides three matching options:
Choose the appropriate comparing mode and click Next.
If in the previous step you chose the By key columns comparing mode, Compare Two Sheets will ask you to select the key columns. Simply pick them for Sheet 1 and the add-in will automatically find the corresponding columns in Sheet 2:
Click Next.
By default, Compare Two Sheets searches for differences in values only, but you can select other options as well:
Select all the needed options and click Compare.
When you click the Compare button, Compare Two Sheets follows a certain algorithm. Here is the step-by-step description:
Over the long years of its existence, this algorithm has been sharpened and tested by many mathematicians and programmers. However, sometimes, at first glance, the result may seem wrong to you. In this case, you only need to carefully examine your cells, their values, and formatting, as well as the relative positions of the rows and the reference structure of the formulas. And in almost 100% of cases, you can find a clear mathematical explanation for the results, which at first seemed illogical.
If you run into something that you cannot explain and that will throw you into hours of meditating about the fate of the universe, please send us the samples of your sheets, and we'll help you figure it out.
The add-in processes your worksheets and opens them in the Review Differences mode:
Your sheets are opened side by side and the cells are marked according to the options chosen on step 4. In the screenshot above, you can see the default colors:
Each window has a vertical toolbar with several buttons. In the inactive window, the toolbar is disabled and decolorized to make you focused on the active worksheet.
The toolbar's buttons are divided into three groups. Each button performs one action for the currently selected cells or rows in the active sheet. Here is a short description of the buttons from top to bottom:
Please use the Paste values option instead if your task is to pull formula results.
There are several ways to exit the Review Differences mode and get back to your normal Excel view:
By default, we assume that you will go all the way through reviewing differences in your worksheets, from the first to the last one. As soon as you are finished, Compare Two Sheets will automatically ask if you want to save your workbooks and switch to the Excel's normal view.
If you are absolutely sure that everything is fine, click OK.
If you decide to stop reviewing differences, use the Exit Review Differences mode button:
Say, you are working in the Review Differences mode. You insert a couple of rows or cells from one sheet to the other and save your sheets. And suddenly Excel crashes and closes your files.
If you try to open them after the crash, you will find out that the files are protected and you cannot make any changes there. To solve this issue, you can either use the backups that were created when you started using the Compare Two Sheets tool, or you can unprotect the original files.
To do this, go to the Review tab, find the Protect group and click Unprotect Sheet:
Excel will ask you to enter the password. Here it is: ablebitscomparesheets
If you experience any other difficulties or issues with Compare Two Sheets, please contact us right away.
You can exit the Review Differences mode and close your sheets, using the standard Excel Close button:
If your sheets contain colored by the tool differences that you did not process with the toolbar, Compare Two Sheets will offer you four options:
Find answers to the most frequently asked questions about Compare Two Sheets:
Please contact us here