How to Compare Two Excel Files Without Losing Your Mind
Compare two Excel files using Spreadsheet Compare, Power Query merge, VLOOKUP/XLOOKUP, View Side by Side, and conditional formatting tricks.

You've got two Excel files that should match. They don't. Somewhere between version 7 and version 9, a number flipped, a row vanished, or a formula picked up a stray decimal. Now you need to find it — and fast.
Comparing two Excel files sounds like it should take thirty seconds. It rarely does. Most people scroll, squint, and pray. That works for ten rows. It does not work for ten thousand. The good news? Microsoft already shipped the tools you need. They're just hidden behind ribbons most folks never click.
This guide walks you through every reliable method to compare two Excel workbooks — from the dedicated Spreadsheet Compare app that ships with Microsoft 365 ProPlus, to the Inquire add-in, the View Side by Side feature, conditional formatting tricks, Power Query merges, and the trusty VLOOKUP/XLOOKUP formula approach. Each tool fits a different job. Some are surgical. Others are sledgehammers. You'll learn when to reach for which.
By the end, you'll know exactly how can I compare two excel sheets when the stakes are high, deadlines are tight, and the boss wants the diff on her desk in twenty minutes. Let's dig in.
Before you pick a tool, pin down what you're actually comparing. The phrase "compare two Excel files" hides at least four different jobs: spotting changed cell values, finding missing rows, auditing formula edits, or reconciling two lists by a shared key. Same words. Very different workflows.
If somebody handed you two budget workbooks and asked "what changed?" — that's a formula and value audit. Spreadsheet Compare crushes that job. If you have two customer lists and need to find which records appear in one but not the other — that's a set-difference problem. Power Query merge or XLOOKUP wins there. And if you simply need to eyeball two sheets while you scroll — View Side by Side with synchronous scrolling is your friend.
Get the question right, and the tool picks itself.
Need a full audit of formulas, values, and formatting? Use Microsoft Spreadsheet Compare (Office 365 ProPlus / Office Professional Plus).
Want to find missing or extra rows? Power Query merge with an anti-join — or XLOOKUP against a key column.
Just need to visually scan two sheets? Open both, then View > View Side by Side with Synchronous Scrolling on.
Highlighting cell-level differences in one sheet? Conditional formatting with a formula rule like =A1<>Sheet2!A1.
Microsoft Spreadsheet Compare is the heaviest hitter in this lineup. It's a standalone desktop app, not a tab inside Excel — and a lot of users never realize they already have it installed. It ships with Microsoft 365 Apps for enterprise, Office Professional Plus 2013/2016/2019/2021, and similar SKUs. If you've got the right license, hit the Start menu and type "Spreadsheet Compare." There it is.
Open the app, click Compare Files, point it at your two workbooks (the older "before" file goes on the left, the newer "after" on the right), and hit OK. In a few seconds you get a side-by-side grid where every changed cell is color-coded: entered values in green, calculated values in blue, formulas in purple. The pane at the bottom lists each change with sheet name, cell address, and the old-versus-new content. You can export the whole report to a fresh workbook for sharing.
For an audit trail, this is unmatched. Spreadsheet Compare also flags structural changes — inserted rows, renamed sheets, broken external links, even VBA macros that differ between files. If you're in financial reporting, regulatory compliance, or any role where "what changed since last Tuesday" needs a defensible answer, this is the tool.
One catch. Spreadsheet Compare is Windows-only and tied to specific Office editions. Mac users — sorry, you'll lean on Inquire-style workflows inside Excel itself, or Power Query.

Tool Map: Which Method Solves Which Problem
Standalone app in Office ProPlus. Full audit of values, formulas, formatting, and macros. Best for compliance and version control.
Built into Excel ProPlus. Workbook Analysis, Compare Files, Workbook Relationship diagram. One-click access from the ribbon.
Free in every Excel version. Opens two workbooks in linked panes with synchronous scrolling. Visual only — no automated diff.
Highlights mismatched cells when two sheets share the same layout. Formula rule <code>=A1<>Sheet2!A1</code>. Free, fast, in-cell.
Joins two tables by a key column with anti-joins to surface missing rows. Handles large datasets cleanly. Works on Mac and Windows.
Formula-based lookup for missing IDs or value mismatches. Universal — every Excel version supports VLOOKUP, modern versions add XLOOKUP.
The Inquire add-in is Spreadsheet Compare's sibling. Same engine, embedded directly inside Excel. To turn it on, head to File > Options > Add-Ins, switch the Manage dropdown at the bottom to COM Add-ins, click Go, and tick the box for Inquire. A new Inquire tab appears on the ribbon.
From that tab, Compare Files launches the same diff workflow as the standalone app — but you stay inside Excel, which feels more natural when you're toggling between workbooks. The Inquire tab also gives you Workbook Analysis (a 30-page report on formulas, named ranges, hidden sheets, and risky links), a Workbook Relationship diagram, and tools for cleaning excess cell formatting.
For most users asking how to compare 2 excel sheets that live in separate files, Inquire is the right starting point. It's already there, the workflow is one click, and the output is the same color-coded report Spreadsheet Compare produces.
Enable Inquire in Three Steps
Open Excel. Click File > Options > Add-Ins. You'll see a list of active and inactive add-ins.
At the very bottom, find the Manage dropdown. By default it shows "Excel Add-ins." Click it and pick COM Add-ins instead — that's where Inquire lives.
Click Go.

What if Spreadsheet Compare and Inquire aren't available? Maybe you're on Excel for Mac, on a Home & Business license, or on a locked-down work machine. Don't panic. Excel's built-in View Side by Side feature works in every version since 2007, and it's exactly what its name promises.
Open both workbooks. Switch to the View tab on the ribbon. Click View Side by Side. Excel tiles the two windows vertically. Now click Synchronous Scrolling right below it — that's the magic switch. Scroll one workbook, and the other scrolls in lock-step. Zoom one, the other zooms too. It's purely visual, but for spotting a misaligned column or a row that's drifted out of place, nothing beats it.
Pair View Side by Side with conditional formatting and you've got a poor-man's diff that works on any Excel installation. The trick: copy both sheets into a single workbook (one as Sheet1, the other as Sheet2). Select the data range on Sheet1, click Conditional Formatting > New Rule > Use a formula, and enter =A1<>Sheet2!A1. Pick a fill color — bright yellow is hard to miss — and apply. Every cell that differs from its twin lights up. It's not as pretty as Spreadsheet Compare, but it's free, it's fast, and it shows you the gaps at a glance.
Files over 50 MB or 500,000 rows will choke Spreadsheet Compare and crash conditional formatting. For anything that large, jump straight to Power Query — it streams data and won't load both files into RAM at once.
Also turn off automatic calculation (Formulas > Calculation Options > Manual) before running heavy comparison formulas, and consider splitting your workbook by sheet before diffing.
Speaking of Power Query — this is where comparison gets serious. Power Query (Get & Transform in older Excel versions) ships free with every modern Excel, including Mac. It's a no-code ETL engine, and the Merge Queries feature is purpose-built for comparing two tables by a shared key.
Here's the workflow. Click Data > Get Data > From File > From Workbook and pull in both Excel files as separate queries. Then click Home > Merge Queries > Merge Queries as New. Pick the key column in both tables — usually an ID, email, or SKU — and crucially, set the join kind to Left Anti.
That returns every row in the first table that has no match in the second. Reverse it (Right Anti) to find rows in file two that are missing from file one. Run an Inner Join and you'll see only the rows that exist in both — perfect for comparing the values on matching keys.
Power Query also handles type mismatches, trailing spaces, and case differences cleanly through its transformation steps. Trim, lowercase, type-convert, then merge — and your "missing rows" report stops including phantom mismatches caused by " John " versus "john". For anyone asking how to compare two excel files for matches at scale, this is the workflow of choice.
Pre-Comparison Checklist
- ✓Identify the shared key column (ID, email, SKU, or order number) before you start.
- ✓Save both workbooks locally — comparing files over OneDrive sync can mid-edit a copy.
- ✓Trim whitespace and normalize case in both files so trailing spaces don't show as differences.
- ✓Convert all data ranges to Excel Tables (Ctrl+T) before loading into Power Query.
- ✓Disable automatic calculation before running heavy formula-based comparisons.
- ✓Note the row count of each file up front — if they differ, you already know rows are missing.
- ✓Back up both files before any merge or in-place edit; comparison can be destructive.
- ✓Decide your output: a highlighted sheet, a difference report, or a merged reconciled file.

For one-off lookups where you don't want to spin up Power Query, classic formulas still rule. VLOOKUP has been the go-to for two decades. The newer XLOOKUP (Excel 365 and Excel 2021) is faster, supports default values, and searches in any direction.
Say you've got a list of IDs in column A of Sheet1 and another list in column A of Sheet2. To flag every ID in Sheet1 that's missing from Sheet2, drop this in column B of Sheet1: =IF(ISNA(XLOOKUP(A2, Sheet2!A:A, Sheet2!A:A)), "MISSING", "OK"). Copy down. Every "MISSING" tag is a row that didn't make it to the second file.
To compare values for matched rows — say a price column — extend the formula: =IF(B2=XLOOKUP(A2, Sheet2!A:A, Sheet2!B:B), "MATCH", "DIFF: " & B2 & " vs " & XLOOKUP(A2, Sheet2!A:A, Sheet2!B:B)). The result string tells you the exact mismatch. Pair this with AutoFilter to surface only the rows that changed, and you've built a one-cell-deep diff report in about a minute. This is how you compare two Excel files when both still fit comfortably in a single sheet.
One more thing worth saying out loud. Comparison is a sanity check, not a solution. If your team is running diffs every week, that's a flag. Get the source data into a single shared workbook, a database, or a Power BI dataset, and turn weekly reconciliation into a daily refresh that runs while you sleep. Excel is brilliant for the last mile. It's a brittle backbone for collaborative editing — and version drift is the symptom you're already feeling.
Build a tiny cheat sheet for your team while you're at it. List the six methods, the rough size limits, and the one-line decision rule for each. Pin it in the team channel. The next time someone new asks how to compare two excel files, you've handed them a map instead of a lecture. That's how knowledge scales beyond your own keyboard — and how the diff stops being a Friday-afternoon emergency for good.
Spreadsheet Compare vs Power Query: Which to Choose
- +Spreadsheet Compare —
- +Spreadsheet Compare —
- +Spreadsheet Compare —
- +Power Query —
- +Power Query —
- +Power Query —
- −Spreadsheet Compare —
- −Spreadsheet Compare —
- −Spreadsheet Compare —
- −Power Query —
- −Power Query —
- −Power Query —
Each method shines at different jobs. The trick is knowing which sledgehammer fits the nail. Compliance audits and version reviews need Spreadsheet Compare's depth. Daily reconciliation of two CSV exports needs Power Query's repeatability. A quick "did anything change here" sniff test just needs View Side by Side. Don't burn an hour on Power Query when conditional formatting would have taken thirty seconds — and don't try to spot-check 200,000 rows with conditional formatting when Power Query was built for exactly that.
The seasoned move is to keep all six tools in your back pocket and let the question dictate the tool. Auditors ask different questions than analysts. Analysts ask different questions than accountants. The question shapes the answer, and the answer shapes the workflow. Spend ten minutes practicing each method on a sample file before the next emergency lands on your desk — that prep work pays back the first time the CFO drops a Friday-afternoon "what changed since Monday?" on you.
Here's a workflow that ties everything together. Suppose you receive two versions of a 30,000-row sales workbook every Monday and need to reconcile them by 9 a.m. Start with Power Query — load both files, anti-join on order ID to surface missing rows from each side, inner-join to compare unit prices on matched orders, and pipe the output to a "Differences" sheet. Save the query. Next Monday, hit Refresh All. Two-minute job, every week, forever.
For occasional version audits — say a quarterly contract review — pull out Spreadsheet Compare and run the full audit. Export the report, attach it to the change-control ticket, done. And for the rare "wait, does anyone remember what we changed in cell K47?" moment, just open both files side by side and scroll. Three tools, one comparison job, each one earning its keep.
Performance matters. The moment you cross into "millions of rows" territory, conventional tricks start to bend. Conditional formatting will lock Excel for minutes. VLOOKUP on two full columns can crawl. Spreadsheet Compare may simply give up. Three quick wins keep big-file comparison tractable.
First, convert your ranges to Excel Tables before doing anything else — Power Query loves tables and structured references shave seconds off every refresh. Second, strip columns you don't need. If you're comparing 60-column workbooks but only care about 4 fields, project down to those 4 in Power Query before merging. Third, push the comparison to the data engine: if both files came from a database, run the diff in SQL or Power BI's DAX, then bring only the differences back into Excel. Excel is a fine viewer for a finished diff. It's a poor engine for diffing terabytes.
Another trick — sort both files identically before any comparison. Even Spreadsheet Compare runs faster on pre-sorted data, and conditional formatting on row-aligned sheets gives you instant visual signal. Sorting is cheap. Reanimating Excel after a crash isn't.
Watch out for type coercion too. A column of order numbers stored as text in one file and as numbers in the other will report every single row as different — even when the underlying values look identical. Before any comparison, scan both files for type drift: the same column should hold the same type in both. Power Query's column-type indicator (a tiny icon to the left of every header) tells you instantly. Force the types to match before merging, and the volume of false positives drops dramatically.
One last note on locale. Two analysts working from the same file across different regions will sometimes get mismatched date columns — 03/04/2026 means March 4th in the US and April 3rd in the UK. If your file passes through hands in multiple countries, lock dates to ISO format (YYYY-MM-DD) before any diff, or convert the date column to text with a canonical format. Comparison tools see strings, not human intent, and a single locale flip can paint a clean workbook red.
A practical follow-up — start logging your diffs. Whatever method you use, save the output report somewhere durable: a SharePoint folder, a OneDrive archive, a Git repo for power users. Two months from now, a manager will ask "when did that price change?" and a quick scan of your archived diffs will land the answer in seconds instead of hours. Comparison reports age into evidence. Treat them like it.
Either way, the next time someone asks how do you compare two excel files, you've got six battle-tested answers ready to go. Pick the right one for the job, and the diff is on the boss's desk before her coffee gets cold.
Excel Questions and Answers
About the Author
Attorney & Bar Exam Preparation Specialist
Yale Law SchoolJames R. Hargrove is a practicing attorney and legal educator with a Juris Doctor from Yale Law School and an LLM in Constitutional Law. With over a decade of experience coaching bar exam candidates across multiple jurisdictions, he specializes in MBE strategy, state-specific essay preparation, and multistate performance test techniques.