Home Guides Excel

Excel

How to Find Differences Between Two Excel Sheets

A practical reconciliation workflow for two Excel sheets: match stable IDs, separate changed values from added or missing records, and verify a difference report safely.

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

Use this guide when you need to reconcile two Excel sheets and produce a reviewable list of what changed. The key task is not simply to compare cells: it is to identify the same records across both sheets, then separate changed values from records that are missing or newly added.

1. Choose the right comparison model

  • Same layout and same row order: compare matching cells directly.
  • Same records, different row order: match by a stable record ID before comparing values.
  • Added or missing records: check whether each ID exists in the other sheet, in both directions.
  • Recurring or large reconciliations: consider Power Query to make the process repeatable.

2. Compare matching cells when rows are aligned

If the two sheets have the same structure and each row represents the same record, enter a formula such as this in a result column:

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

Copy the formula across the fields you need to compare. This method is only valid when the row positions really correspond; sorting or inserting rows can create misleading results.

3. Match reordered records by a stable ID

For independent exports, choose a unique identifier such as an invoice number, employee ID or product code. Avoid matching by row number or by a name that may not be unique.

For example, to check whether the ID in A2 exists in Sheet2 column A:

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

Repeat the check in the opposite direction to find records present in Sheet2 but absent from Sheet1. If IDs are duplicated, resolve that ambiguity before relying on a simple lookup.

4. Compare values after records match

Once the same ID is found in both sheets, compare the fields relevant to the task—such as amount, date, status or quantity. A record can exist in both sheets while one or more of its values has changed.

5. Build a reviewable difference report

  1. Keep untouched copies of both source sheets.
  2. Choose the baseline version and document it.
  3. Match records using the stable ID.
  4. Classify each result as missing, added, changed or unchanged.
  5. Record the old value, new value and field name for changed records.
  6. Review flagged differences before modifying the source data.

6. Check data quality and edge cases

  • Trim unintended leading or trailing spaces.
  • Check whether numbers are stored as text and dates use compatible values.
  • Decide how blanks, zeros and formula errors should be treated.
  • Check duplicate IDs and run presence checks in both directions.
  • For critical reconciliations, compare record counts and independently verify totals.

7. When to use Power Query

If you repeat the same comparison for monthly exports or large tables, Power Query can merge the datasets on a key and help identify unmatched or changed records. It takes setup, but the steps can be refreshed for the next file pair.

Worked example

Suppose the original sheet has IDs 1001 and 1002, while the revised sheet has IDs 1001 and 1003. A two-way presence check identifies 1002 as absent from the revised version and 1003 as newly present. After matching ID 1001, compare its amount or status separately to determine whether its values changed. This keeps missing records distinct from changed records.

Final checklist

  • Define what counts as a difference before starting.
  • Use row-by-row comparison only when rows are aligned.
  • Use stable identifiers for reordered data.
  • Check both directions for added and missing records.
  • Preserve originals and verify the report before accepting changes.

Use this guide for a sheet-to-sheet reconciliation and a traceable difference report. For a broader overview of comparing sheets with formulas, visual highlighting and lookup methods, see the related article on comparing two Excel sheets for differences.

Practice with an Excel Sheet Reconciliation Workbook

Use this free Excel workbook to practise comparing two versions of a spreadsheet. It includes sample records with changed values, missing entries and newly added records.

What You Will Practise

  • Compare original and revised records using a stable ID.
  • Identify changed values in matched records.
  • Find records missing from either version.
  • Identify newly added records.
  • Review differences before updating the original data.

How to Use the Workbook

  1. Open the Original and Revised sheets.
  2. Compare the records using their stable IDs.
  3. Identify changed, missing and newly added records.
  4. Check your findings against the workbook's instructions and expected results.

Compatibility note: Some formulas use XLOOKUP. For older Excel versions, use the INDEX/MATCH alternative described in the workbook instructions.

Download the Excel Sheet Reconciliation Practice Workbook (.xlsx)

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.

Learn more

Related Articles

Understand the wider topic with an informative Tervilo article.