Home Guides Excel

Excel

How to Find Differences Between Two Excel Sheets

Learn practical ways to compare two Excel sheets, identify changed or missing values, check rows with formulas and create a reviewable difference list.

In this guide Step-by-step explanations, practical examples and useful context to help you complete the task confidently.

Comparing two Excel sheets is common when you receive a revised report, reconcile two exports, or need to find what changed between two versions of a workbook. Before comparing, decide whether you need to find changed cells, missing records, or differences in the overall lists.

Compare the same cell on two sheets

If Sheet1 and Sheet2 have the same layout, a simple formula can flag differences:

=IF(Sheet1!A2=Sheet2!A2,"Same","Different")

Copy the formula across the relevant range when the cell positions correspond.

Highlight changed cells

Conditional Formatting can be used with a formula to make changed values easier to review. This works best when both sheets have the same structure and the cells being compared represent the same records.

Find records missing from the other sheet

If the sheets are not in the same order, compare a stable identifier such as an invoice number, employee ID or customer ID rather than comparing row numbers. COUNTIF or XLOOKUP can check whether an identifier exists on the other sheet.

=IF(COUNTIF(Sheet2!$A:$A,A2)=0,"Missing from Sheet2","Found")

Compare revised and original files safely

  1. Keep an untouched copy of both source sheets.
  2. Choose a stable key or identifier.
  3. Normalize obvious data-quality issues.
  4. Compare presence first, then compare values for matching records.
  5. Review differences before changing either source.

Common problems

  • False differences: extra spaces, different number formats, text-versus-number values, or different date representations can cause unexpected results.
  • Wrong matches: duplicate identifiers make a simple lookup ambiguous.
  • Row-by-row comparison fails: the two sheets may have been sorted differently.
  • Large workbooks become difficult to review: use helper columns, filters, or a separate difference report.

Compare sheets or compare workbooks?

If the information is stored in separate workbooks, the same principles apply, but linked formulas and external references add another layer of complexity. For a repeatable reconciliation process, keep a stable key and document which version is the source of truth.

Practical checklist

  • Never overwrite the original sheets before the comparison is complete.
  • Use a stable identifier instead of row position whenever possible.
  • Check data types and whitespace before trusting a mismatch.
  • Separate missing records from changed values.
  • Keep a reviewable difference report when the comparison is part of a recurring process.

Migration 074: sheet-comparison refinement.

Do not compare row numbers unless the rows are aligned

Two sheets can contain the same records in different orders. Comparing A2 with A2 is only valid when the row positions represent the same record. For exports from different systems, use a stable identifier such as an order ID, employee ID, invoice number, or product code to match records first.

A practical reconciliation workflow

  1. Keep an untouched copy of both source sheets.
  2. Choose the field that uniquely identifies a record.
  3. Check whether each identifier exists in the other sheet.
  4. For matching identifiers, compare the fields that matter.
  5. Separate missing records from changed records.
  6. Review the differences before updating either source.

Same-layout sheets versus reordered sheets

For two sheets with the same layout and guaranteed row alignment, a direct formula such as =IF(Sheet1!A2=Sheet2!A2,"Same","Different") is simple. For reordered or independently exported data, use a key-based lookup instead. This prevents a harmless row-order change from being reported as dozens of false differences.

Check data quality before declaring a difference

False differences often come from leading or trailing spaces, numbers stored as text, inconsistent date values, or other formatting differences. Normalize the data first, then compare. A reconciliation report is only as reliable as the data being compared.

When the files are large

For large workbooks or repeated reconciliation jobs, consider structured tables, Power Query, or a dedicated comparison workflow rather than maintaining thousands of ad-hoc formulas. The goal is a repeatable comparison process that another person can understand and rerun.

You've reached the end

Use the related tools, FAQs and next guides below to continue from the topic you just learned.

Questions & answers

Frequently Asked Questions

How do I compare two Excel sheets with the same layout?

Compare corresponding cells with a formula such as =IF(Sheet1!A2=Sheet2!A2,"Same","Different") and extend it across the required range.

How do I find records missing from another sheet?

Use a stable identifier and test whether it exists in the other sheet with COUNTIF, XLOOKUP or another lookup method.

Why are my sheet comparisons showing false differences?

Check spaces, data types, date values and other formatting or data-quality differences before assuming the records actually changed.

Should I compare row numbers between two sheets?

Only when the rows are guaranteed to represent the same records in the same order. Otherwise use a stable identifier to match records.

Should I compare the same cell on two sheets?

Only when both sheets have the same records in the same row order. Otherwise use a stable identifier to match records before comparing their values.

Continue learning

Related Guides

Explore the next practical guide without leaving Tervilo.

Learn more

Related Articles

Understand the wider topic with an informative Tervilo article.