Comparing two Excel sheets helps you spot changes between versions of a report, reconcile exports, or check whether two datasets contain the same information. Choose the method based on whether the sheets share the same layout, contain the same records in a different order, or need a repeatable comparison process.
Choose a method
| Situation | Approach |
|---|---|
| Same rows and columns line up | Direct cell comparison |
| Records are reordered | Match using a stable ID and a lookup |
| Need visual scanning | Conditional Formatting |
| Need to repeat the comparison | Power Query |
Compare sheets visually
For small sheets with identical layouts, place the worksheets side by side and inspect the relevant cells. This is quick for a small number of rows, but it becomes unreliable when the sheets have been sorted differently or contain inserted rows.
Use a formula for aligned cells
When matching cells represent the same record, a formula such as =A2=Sheet2!A2 returns TRUE when the values match. You can use an IF formula to display labels such as “Match” or “Different.” Do not use this approach blindly when row order differs.
Highlight differences with Conditional Formatting
Conditional Formatting can highlight changed cells in a visual review. It is most useful when both sheets have the same structure and corresponding cells refer to the same records. Treat the highlighting as a review aid and validate important results separately.
Match records with XLOOKUP or COUNTIF
If records appear in different orders, match a stable identifier such as an invoice number or product ID. XLOOKUP can retrieve a corresponding value in supported Excel versions; COUNTIF can check whether an ID appears in the other sheet.
=IF(COUNTIF(Sheet2!$A:$A,A2)=0,"Missing","Found")
Run the presence check in both directions if you need to find all additions and removals. XLOOKUP requires a recent Excel version; INDEX/MATCH or other lookup methods may be alternatives.
Compare changed values after matching
Finding an ID in both sheets does not mean the whole record is unchanged. Compare the relevant fields—such as amount, date or status—after the records have been matched.
Use Power Query for repeat comparisons
For large files or recurring monthly comparisons, Power Query can merge tables by a key and expose unmatched records. A saved workflow can be refreshed with new source files, reducing repeated manual steps.
Common causes of misleading results
- Comparing row positions when records have been sorted differently.
- Using a non-unique field as the matching key.
- Checking only one direction for missing records.
- Ignoring spaces, text-versus-number values, blanks or date formats.
- Assuming equal displayed values mean the underlying formulas are identical.
Keep the comparison safe
Preserve original copies, define which version is the baseline, and review flagged differences before changing source data. For important financial or operational reports, check record counts and validate totals independently.
This article provides an overview of common ways to compare sheets. For a step-by-step reconciliation workflow that classifies records as changed, added or missing and builds a reviewable report, see the related guide on finding differences between two Excel sheets.