The fastest way to spot differences between two Excel sheets
Excel does not have a built-in "compare worksheets" button, but you can line them up on your screen at the same time and move through them together. The method depends on whether both sheets are in the same file or in separate files. If they are in the same file, you can split the window and jump to matching cells. If they are in different files, you can open both and arrange the windows side by side. For finding actual differences — changed numbers, deleted rows, added text — you will need to either scan visually or use a formula to flag what changed.
The choice between visual comparison and formula-based comparison depends on your sheet size. For a few dozen rows, side-by-side viewing is usually enough. For hundreds or thousands of rows, a formula that flags differences is much faster and less error-prone.
Key Takeaways
- Open both worksheets in the same Excel window by using View > New Window, then arrange the windows side by side so you can see both at once.
- Use View > Freeze Panes to lock column headers or row labels in place while you scroll, so you always know what you are looking at.
- For worksheets in the same file, use View > Split to divide one window into two panes that scroll independently.
- To find specific changes, use a formula like =IF(Sheet1!A1<>Sheet2!A1,"DIFFERENT","") in a helper column to flag cells that do not match.
- If you have many rows to check, sort or filter by the helper column to see only the rows where something changed.
Comparing sheets in the same Excel file
If both worksheets are tabs in the same file, the easiest approach is to split your view. Open the file and go to the View tab at the top. Click Split. Excel will divide your window into four panes separated by thick lines. You can now click in the upper-left pane and navigate to one sheet, then click in the lower-left pane and navigate to the other sheet. Both panes stay visible as you scroll.
Alternatively, use View > New Window to open a second copy of the same file in a new window. Then go to View > Arrange All and choose Vertical or Horizontal to place them side by side. Click on each window and navigate to the sheet you want to compare. This method is cleaner if your sheets have many columns, because you get the full width of each pane.
Once your sheets are visible together, use View > Freeze Panes in each pane to lock the header row or first column in place. Click on the cell just below and to the right of what you want to freeze — for example, click on cell A2 to freeze row 1 — then go to View > Freeze Panes > Freeze Panes. Now when you scroll down, the headers stay at the top.
Comparing sheets in different Excel files
Open both files in Excel. Go to View > Arrange All and select Vertical to place them side by side, or Horizontal to stack them. Both windows will resize automatically. You can now click in each window and navigate to the sheets you want to compare.
If you want to keep one file stationary while scrolling through the other, freeze the panes in the stationary file first. Click on the cell below and to the right of what you want to lock, then go to View > Freeze Panes > Freeze Panes. The frozen area will stay in place while the rest of the sheet scrolls. This is especially useful when one sheet is a reference version and the other is a newer version you are checking against.
Using a formula to find what changed
Visual comparison works for small sheets, but for hundreds of rows, a formula is faster. Create a helper column in one of the sheets. In the first cell of that column, type a formula that compares the same cell in both sheets. For sheets in the same file, use =IF(Sheet1!A1<>Sheet2!A1,"DIFFERENT",""). For sheets in different files, use =IF([File2.xlsx]Sheet1!A1<>A1,"DIFFERENT",""), replacing File2.xlsx with the actual filename.
Press Enter. The cell will show "DIFFERENT" if the values do not match, or stay blank if they do. Copy this formula down the entire column. Now you can see at a glance which rows have changed. To focus on only the differences, click on the column header and go to Data > AutoFilter, then click the dropdown arrow in your helper column and uncheck the blank cells. Only rows with differences will show.
This method works for comparing values, text, and dates. It does not catch rows that were added or deleted — you will need to check the row count manually for that. If you are comparing large datasets and need to find inserted or deleted rows, sort both sheets by a unique identifier (like an ID number) first, so matching rows line up.
Handling sheets with different column orders
If the columns are in a different order between the two sheets, do not rely on position. Instead, use column headers in your formula. For example, if Sheet1 has a "Product ID" column and Sheet2 also has one, but they are in different positions, use =IF(INDEX(Sheet1!A:A,MATCH("Product ID",Sheet1!1:1,0))<>INDEX(Sheet2!A:A,MATCH("Product ID",Sheet2!1:1,0)),"DIFFERENT",""). This finds the "Product ID" column in each sheet by name and compares the values, regardless of which column number it is.
For simpler cases, rearrange one sheet to match the other before comparing. Select the columns you want to move, cut them, and insert them in the correct position. This takes a few minutes but makes the comparison much clearer and reduces the chance of comparing the wrong columns by accident.
Checking for added or deleted rows
If you suspect rows were added or deleted, start by checking the row count. Click on the column header of any column with data, then press Ctrl+Down (or Cmd+Down on Mac) to jump to the last row with content. Note the row number. Do the same in the other sheet. If the numbers are different, rows were added or deleted.
To find which rows are missing, sort both sheets by a unique identifier — an ID number, date, or name that appears in both sheets. Then scan down both sheets side by side. Gaps in the sequence will show you where rows were deleted. If one sheet has more rows, scroll to the end of the shorter sheet and look at the rows that follow in the longer sheet to see what was added.
Frequently Asked Questions
Can I compare sheets without opening them side by side?
Yes, use a formula in a helper column to flag differences. Type =IF(Sheet1!A1<>Sheet2!A1,"DIFFERENT","") and copy it down. This is faster for large datasets and lets you filter to see only the changed cells. You can then click on each flagged row to review the change.
What if the sheets have different numbers of rows?
The formula method will show blanks in the shorter sheet, which will appear as differences. Sort both sheets by a unique identifier first so matching rows line up. Then manually check the extra rows in the longer sheet to see what was added.
How do I compare sheets if the columns are in different orders?
Rearrange one sheet to match the other, or use a formula that finds columns by header name instead of position. The MATCH and INDEX functions can locate a column by its header and compare values from that column, even if it moved.
Can I undo the split view or freeze panes?
Yes. To remove split view, go to View > Split again and click it to toggle off. To remove frozen panes, go to View > Freeze Panes > Unfreeze Panes. Both changes are instant and do not affect your data.
What if I need to save a record of the differences?
Use the helper column method and keep that column in the file. You now have a permanent record of which cells changed. Alternatively, copy the filtered results (showing only differences) and paste them into a new sheet or file as a change log.