How to Find Missing Rows Between Two Files
March 26, 2026 · Updated March 30, 2026 · SheetPair
You have two files. They should contain the same records — but do they? Finding missing rows is one of the most common data tasks, whether you're checking a data migration, auditing a report, or reconciling accounts.
The manual way (and why it's painful)
If you're new to file comparison, for the step-by-step CSV comparison guide, start there — then come back here for the missing-rows-specific approach.
The traditional way to find missing rows is using VLOOKUP in Excel to check each ID against the other file, then filtering for #N/A results. It works for small files but breaks down fast. Here's the full process:
- Add a VLOOKUP in File A that looks up each ID in File B
- Filter for
#N/Aresults — those are the missing rows - Repeat in the other direction (File B looking up in File A)
- Combine the results
This works for small files. But it's slow, error-prone, and gets complicated when your key spans multiple columns (e.g., matching on both name and date).
The fast way
The fastest way to find missing rows is to upload both files to a comparison tool that matches rows by key columns and shows you what's in one file but not the other. SheetPair does exactly this. Set your key columns, and in seconds you get:
- Only in File A — rows that exist in File A but not in File B
- Only in File B — rows that exist in File B but not in File A
- Plus matched rows and rows with differences, if you want the full picture
You can export just the missing rows as CSV or Excel with one click.
Common use cases
Data migration verification
After migrating records from one system to another, export both and compare. Missing rows = records that didn't transfer.
Report auditing
Got two reports that should show the same transactions? Upload both and instantly see which records are missing from each.
List deduplication
Have a master list and a new import? Find which records from the import are already in your master list and which are new.
Vendor reconciliation
Compare your purchase orders against vendor invoices to find orders that haven't been invoiced yet (or invoices without matching POs).
Multi-column keys
You can match rows using more than one column as the key — useful when a single column isn't enough to uniquely identify a row. For example, you might need to match on both Customer Name AND Invoice Date together.
SheetPair supports multiple key columns — just mark each one as a "key" in the column mapper. Rows must match on ALL key columns to be considered a match.
What about duplicates?
Duplicate rows are handled correctly. If File A has two rows with the same key and File B has one, SheetPair matches them and surfaces the extra row. No formula gymnastics needed.
Get started
Drop your two files at sheetpair.com and filter by "Only in File A" or "Only in File B" to see exactly what's missing. Free for files up to 1,000 rows.
Frequently Asked Questions
- How do I find rows that are in one file but not another?
- Upload both files to SheetPair, set your key columns, and check the 'Only in File A' and 'Only in File B' results. These show exactly which rows are missing from each file.
- Can I match rows using multiple columns as the key?
- Yes. SheetPair supports multiple key columns — mark each one as a key in the column mapper. Rows must match on all key columns to be considered a match.
- What happens when there are duplicate rows with the same key?
- SheetPair handles duplicates correctly. If File A has two rows with the same key and File B has one, it matches them and surfaces the extra row separately.
- Can I export just the missing rows?
- Yes. You can export results filtered by category — only missing rows from File A, only missing rows from File B, or any other combination. Export formats include CSV and Excel.
- Does this work with both CSV and Excel files?
- Yes. SheetPair supports CSV, .xlsx, and .xls files. You can even compare a CSV against an Excel file — the formats don't need to match.