Excel has a built-in utility for comparing two workbooks, but it is buried, not on the ribbon by default, and only works properly if both files are formatted the same way. The quickest reliable route is Spreadsheet Compare (the Office add-in that ships with Microsoft 365 Apps for enterprise and some Professional Plus installs), followed by the formula route for anyone who does not have it. This guide covers both, plus the manual side-by-side view and how to read the difference report without panicking at 400 highlighted cells that all turn out to be rounding.
What You'll Need
- Two workbooks or two sheets you want to compare, ideally with the same column layout and the same sheet names.
- Excel on Windows (desktop). Spreadsheet Compare is a Windows-only tool; there is no Mac version and no web version.
- A Microsoft 365 Apps for enterprise or Office Professional Plus licence for the add-in route. If you are on Microsoft 365 Personal or Family, or on Excel for Mac, or Excel for the web, use the formula route in Step 5 instead.
- Both files saved and closed before you start, or at least saved. The tool compares what is on disk, so unsaved edits are invisible to it.
Step-by-Step
- Save both files, then close them. Spreadsheet Compare opens the saved copy of each workbook. If you have unsaved changes in either file, they will not be part of the comparison and you will chase differences that do not exist. Note the exact file names and folders; you will need to browse to them.
- Open Spreadsheet Compare. In Windows, search the Start menu for Spreadsheet Compare. The usual install path is under
C:\Program Files (x86)\Microsoft Office\root\Office16\DCF\SpreadsheetCompare.exeor in the Office Tools folder, and the exact path varies by version. If nothing comes up, the add-in is not installed on your licence and you should move to Step 5. Menu and dialog labels can differ slightly between versions and regional builds. - Pick the two files. In the Spreadsheet Compare window, choose Compare files (or use the Home tab and the file-picker buttons). Set one workbook as the Compare file (the newer or revised one) and the other as the To file (the baseline). Swapping them only flips the direction of the arrows in the report, but it changes how you read it, so decide deliberately and remember the order.
- Choose which sheets and ranges get checked. The tool compares matching sheet names, not matching positions. If one workbook calls a sheet Q3 Sales and the other calls it Q3_Sales, the tool treats it as missing rather than comparing it. Rename sheets so they match, or accept that the report will flag whole tabs as added or deleted. Check the options for formulas versus values: by default it compares the calculated results, which is what most people want.
- Run the comparison and read the report by colour. The results grid uses fixed colour coding: green for cells only in the comparison file, blue or another shade for cells only in the baseline, and highlighted cells for changed values, with arrows or small markers showing shifts in position. Use the side panel tabs to jump between Values, Formulas, Macros and Formatting so you are only looking at one type of difference at a time. This is the single biggest time-saver: formatting-only changes will otherwise drown out real data changes.
- Export or save the report if you need to share it. Spreadsheet Compare can export results to an Excel workbook, which is the practical way to hand findings to someone else or to keep an audit trail. Exported reports are snapshots, not live links, so re-run the comparison after any fix.
- Use the formula route if you do not have the add-in. Put both sheets in the same workbook (or both workbooks open), then in a blank column on the first sheet use
=IF(A2=Sheet2!A2,"","DIFF")or the clearer=IF(A2<>Sheet2!A2,"DIFF",""). Fill down and across, then filter the helper column for DIFF. For a text-level check on two cells use=EXACT(A2,Sheet2!A2), which is case-sensitive where the equals sign is not. To match records by a key rather than by row position, useXLOOKUPorVLOOKUPfrom one sheet into the other and wrap it inIFERRORso missing keys stand out. - Or use the side-by-side view for a quick visual check. Open both workbooks, then go to View > Window > View Side by Side and turn on Synchronous Scrolling. This is not a difference report and it will not highlight anything, but it is the fastest way to spot a structural change, such as a whole column inserted, that a cell-by-cell comparison reports confusingly.
Common Mistakes
Comparing files with different sheet names. The tool matches on sheet name, so renamed tabs produce an "added sheet" and a "deleted sheet" instead of a clean row of differences. Rename first.
Leaving sort order different. Spreadsheet Compare is positional. If one file is sorted by date and the other alphabetically, every row after the first difference will show as changed even though the same records are present. Sort both files by the same key before comparing.
Treating hidden formatting as data changes. Font changes, cell fills and number formats show up as differences. Filter the report to values or formulas only unless formatting is genuinely what you care about.
Ignoring floating-point noise. Numbers stored as the result of division or percentages can differ in the fifteenth decimal place and still get flagged. Round both sides with ROUND before comparing if small arithmetic drift is expected.
Forgetting text versus number types. A value stored as text in one file and as a number in the other will always show as different. Watch for cells with a green triangle warning in the corner.
Tips
Add a unique ID column to both files before comparing. Even if the tool works positionally, a key column lets you use lookup formulas to confirm whether the same record exists on both sides, which is the question that usually matters.
Compare a test copy with a handful of deliberate edits first, so you learn the colour scheme on differences you already know about.
Freeze panes and hide irrelevant columns in both files so the visual review is easier if you fall back to side-by-side.
If you compare the same two sources regularly, record the exact steps and the sort order in a short note. Most comparison errors are procedure errors, not tool errors.
Keep both original files untouched until you have reviewed the report. Comparing, then editing in place, means you lose the baseline you were measuring against.
Troubleshooting
Spreadsheet Compare is not in the Start menu. Search the Office installation folders for SpreadsheetCompare. If it is genuinely absent, your licence does not include the tool; use the formula route. Do not download it from third-party sites, only from Microsoft.
The tool opens but rejects a file. Check the file is not password-protected, not open in another window, and not in a format the tool cannot read. Save as .xlsx or .xlsb rather than a legacy format, then retry.
Everything shows as different. This is nearly always a sort-order mismatch, a hidden header row offset, or a text-versus-number mismatch. Compare the first ten rows manually to find which one it is.
Large files take forever or crash. Compare fewer sheets at a time, close other workbooks, and remove unneeded pivot caches or external links. Comparing a single sheet from each file is much faster than comparing whole workbooks.
Formula route returns errors everywhere. Check sheet reference syntax for spaces (Sheet name with a space needs single quotes: 'Q3 Sales'!A2) and confirm both ranges are the same size. Mismatched range sizes produce spilling or offset results that look like false differences.
Frequently Asked Questions
Does Excel have a built-in compare tool?
Yes, Spreadsheet Compare, but it is a Windows desktop add-in included with certain business and enterprise Microsoft 365 licences. It is not available on Mac or in Excel for the web.
Can I compare two sheets in the same workbook?
Not with Spreadsheet Compare directly, which works on whole files. Copy one sheet into a separate workbook, or use formula comparisons between the two sheets.
How do I compare two columns for differences?
Use =IF(A2<>B2,"DIFF","") in a helper column, or =EXACT(A2,B2) if you need a case-sensitive check. Filter the helper column for your marker.
Why does a cell show as different when the values look identical?
Usually a hidden decimal place, a trailing space, or one value stored as text and the other as a number. Use TRIM and ROUND to normalise both sides.
Can I compare files on Mac?
Not with the Microsoft tool. Use formula-based comparison, or the side-by-side view with synchronous scrolling for a visual check.