Find and Highlight the Differences Between Two Sheets in Excel 2026

Spotting changes between two versions of a spreadsheet by eye is slow and easy to get wrong. The faster way to find and highlight the differences between two sheets is a single conditional formatting rule that colors every cell that does not match. This guide walks through the full process, from setup to cleanup, in a few minutes.

Key Takeaways

  • A conditional formatting formula compares each cell on one sheet with the same cell on the other sheet.
  • The formula =A1<>Sheet2!A1 flags every mismatch, and the fill color makes it easy to see.
  • Both sheets should sit in the same workbook and share the same layout for accurate results.
  • The original data is never changed, and the highlights can be cleared at any time.

How to Find and Highlight the Differences Between Two Sheets in Excel

This method works best when both sheets hold the same kind of data in the same positions, such as last month’s price list and this month’s version. The rule runs cell by cell, so a value in B5 on the first sheet is compared with the value in B5 on the second sheet.

Before Starting

Both sheets need to be in the same workbook. If they live in separate files, right-click the sheet tab, choose Move or Copy, pick the destination workbook, tick Create a copy, and click OK. The examples below use Sheet1 as the sheet to highlight and Sheet2 as the sheet to compare against.

Highlight the Differences

  • Step 1: Open the workbook and click the tab of the first sheet (Sheet1).
  • Step 2: Click cell A1, then press Ctrl+Shift+End to select everything from A1 to the last used cell. Make sure A1 stays the active cell, because the formula in Step 5 depends on it.
  • Step 3: Go to the Home tab, click Conditional Formatting in the Styles group, and choose New Rule.
  • Step 4: In the New Formatting Rule window, select Use a formula to determine which cells to format.
  • Step 5: Click the box under Format values where this formula is true and type =A1<>Sheet2!A1 exactly as shown. Keep the references relative, with no dollar signs.
  • Step 6: Click Format, open the Fill tab, pick a bright color such as yellow or light red, and click OK.
  • Step 7: Click OK again to apply the rule. Every cell on Sheet1 that differs from the matching cell on Sheet2 is now filled with the chosen color.

Highlight the Differences

Tip: If the second sheet has a name with spaces, such as Sales Jan, wrap it in single quotes inside the formula, like =A1<>’Sales Jan’!A1. Excel needs the quotes to read the name correctly.

Highlight Differences on the Second Sheet Too

The rule above only colors cells on Sheet1. To see the mismatches from the other side as well, switch to Sheet2, select A1 through the last used cell, and repeat Steps 3 to 7 with the formula =A1<>Sheet1!A1.

Make the Comparison Case Sensitive

By default, the not-equal comparison treats Apple and apple as identical. When capitalization matters, use =NOT(EXACT(A1,Sheet2!A1)) in Step 5 instead. This version also catches the less obvious case where one cell is truly empty and the other contains a zero.

Make the Comparison Case Sensitive

Count How Many Cells Differ

To get a quick total, click an empty cell and enter =SUMPRODUCT(–(Sheet1!A1:D20<>Sheet2!A1:D20)), changing D20 to match the last cell of the data. The result is the number of mismatched cells in that range.

Remove the Highlights

Select the highlighted range, go to Home, click Conditional Formatting, choose Clear Rules, and then pick Clear Rules from Selected Cells. To wipe every rule on the sheet at once, pick Clear Rules from Entire Sheet. Tip: Clearing a rule removes only the color, so the data underneath stays untouched.

Common Problems and Fixes

Almost Every Cell Is Highlighted

This usually means the active cell was not A1 when the rule was created, so every comparison is shifted. Clear the rule, click A1, select the range again, and recreate the rule. A second cause is data that has moved down or up a row on one sheet, which throws off every cell below the change. Sorting both sheets the same way first solves it.

Nothing Is Highlighted Even Though Differences Exist

Check that the selected range covers the cells in question. A rule applied only to the original used range will not color extra rows added later. Open Home, Conditional Formatting, Manage Rules, and widen the Applies to range if needed. Also confirm that the formula uses <> and the correct sheet name.

Cells Look Identical but Are Still Flagged

Hidden trailing spaces, numbers stored as text, or slightly different decimals are the usual culprits. The rule compares underlying values, not what is displayed, so 2.5 and 2.4999 count as different even if both show as 3 after rounding. Cleaning the data on both sheets removes these false alarms.

A Blank Cell Is Not Flagged Against a Zero

With the standard formula, an empty cell and a zero are treated as equal. Switching to =NOT(EXACT(A1,Sheet2!A1)) makes the rule flag that pair.

The Formula Is Rejected or Returns an Error

A typo in the sheet name is the most common reason. Sheet names must match exactly, including spaces, and names containing spaces need single quotes around them.

Frequently Asked Questions

Can two sheets in different workbooks be compared?

The most reliable approach is to copy one sheet into the other workbook first. Right-click the sheet tab, choose Move or Copy, pick the destination workbook, tick Create a copy, and then apply the same conditional formatting rule.

Does highlighting differences change the original data?

No. Conditional formatting only changes how cells look. The values and formulas stay exactly as they were, and the highlights disappear when the rule is cleared.

How can the comparison be made case sensitive?

Use =NOT(EXACT(A1,Sheet2!A1)) as the rule formula. The standard not-equal comparison treats Apple and apple as the same, while EXACT treats them as different.

How can differences be highlighted on both sheets?

Create the rule on each sheet separately. On Sheet1 use =A1<>Sheet2!A1, and on Sheet2 use =A1<>Sheet1!A1, selecting the same range starting at A1 each time.

How are the highlights removed?

Select the cells, go to Home, click Conditional Formatting, choose Clear Rules, and then pick Clear Rules from Selected Cells or Clear Rules from Entire Sheet.

Does the comparison work if the rows are in a different order?

No. The rule compares cells by position, so row 5 on one sheet is checked against row 5 on the other. Sort both sheets in the same order before applying the rule.

Does the rule compare formulas or values?

It compares values. Two cells with different formulas that return the same result are not highlighted.

How can the number of differences be counted?

Enter =SUMPRODUCT(–(Sheet1!A1:D20<>Sheet2!A1:D20)) in an empty cell, adjusting the range to match the data. The result is the total number of mismatched cells.