The fastest built-in route is Inquire > Compare Files in Excel for Windows with the Inquire add-in enabled, which produces a color-coded cell-by-cell report of values, formulas, formats, and macros. That feature ships with Microsoft 365 Apps for enterprise and Excel Professional Plus; other editions and Excel for the web need the side-by-side or formula alternatives covered here.
Run a Cell-by-Cell Comparison with Compare Files
- Open both workbooks in the same Excel instance, then confirm the Inquire tab appears on the Ribbon. If it's missing, go to File > Options > Add-ins, set the Manage dropdown to COM Add-ins, click Go, and check Inquire.
- On the Inquire tab, click Compare Files to open the Compare Files dialog box.
- Next to the Compare box, click the folder icon and select the earlier version of the workbook; repeat for the To box with the newer version. Files with identical names in different folders are valid choices.
- Click OK and wait for the comparison to finish; the results open in a two-pane grid, with the Compare file on the left and the To file on the right.
- Read the color coding in the grid and the detail pane beneath it to identify each change type: entered values, formulas, named ranges, and formats are flagged separately, and a VBA window lists macro code changes line by line.
- Use the pane controls to filter to a single change category, then export or print the report for review. Confirm success when every flagged cell carries a matching detail entry in the lower pane—an empty pane for a highlighted cell usually means a formatting-only difference.
If the dialog rejects a file, close it in any other Excel window and retry; Compare Files needs both workbooks open in the same instance. For full Microsoft steps on the report layout, see the Spreadsheet Compare basic tasks page.
View Two Sheets Side by Side Without the Add-in
When Inquire isn't available, Excel's window tools give you a manual but reliable diff:
- Open both workbooks, then on the View tab in the Window group click New Window to create a second window of the active workbook.
- Click View Side by Side in the same Window group, then select the sheet you want in each window.
- Turn on Synchronous Scrolling so both panes move together; if the two sheets use different row layouts, click Reset Window Position instead and scroll manually.
- Widen the windows across two monitors or use View > Zoom to fit more rows; verify alignment by checking that row 1 of each sheet shows the same headers.
Synchronous Scrolling breaks as soon as one sheet has an inserted or deleted row, because the row offsets no longer match. In that case, compare header-to-header in slices rather than the whole sheet. Microsoft's walkthrough for this view is on the side-by-side worksheets page.
Excel for the web and Excel for Mac
Excel for the web has no Inquire tab and no Compare Files command, so use side-by-side viewing or the formula methods below. Excel for Mac likewise lacks Spreadsheet Compare; the same formula approaches work there, and View > Side by Side is available in current builds. Treat any menu label that differs from the paths above as a version boundary and confirm it in your own Ribbon before relying on it.
Build a Formula-Based Diff Inside a Third Workbook
For repeatable comparisons, especially across shared drives or automated runs, formulas beat any UI tool. This method is available in every Excel edition.
- Open a blank workbook and add both files as tables or connections: Data > Get Data > From File > From Workbook, then load each as a table on its own sheet.
- On a third sheet, build a key column that uniquely identifies each row, such as an order ID or employee number.
- Pull matching records with a lookup that tolerates unsorted data and returns a clear miss:
=XLOOKUP(A2, OldTable[ID], OldTable[Amount], "Missing in old", 0)
- Flag differences row by row with a comparison column, then count them:
=IF(ABS([@NewAmount]-[@OldAmount])>0.005, "Changed", "Match")
The 0.005 tolerance absorbs floating-point noise so trivial rounding differences don't register as changes; a higher tolerance suits currency totals, a lower one suits unit counts. XLOOKUP doesn't require sorted data for its default exact match, and match_mode 0 is the safe choice for IDs.
- Summarize with
=COUNTIF(DiffTable[Status],"Changed")and add a totals check that compares old and new sums so a missing row can't hide inside a balanced total.
To compare whole rows rather than single fields, concatenate key fields into a helper column in each table and compare those strings, which surfaces row-level insertions and deletions that a single-column lookup misses.
Compare Two Versions of One Workbook with Inquire's Other Tools
The Inquire tab also hosts Workbook Analysis, Worksheet Relationship, and Cell Relationship. After a Compare Files run, use Cell Relationship on a flagged cell to trace every precedent and dependent across sheets and workbooks, which explains why a formula result shifted. This is the practical answer when a diff report shows a changed total but the source cell looks correct.
Practical Fixes When the Comparison Won't Behave
Compare Files is grayed out or missing. The Inquire add-in isn't enabled, or your edition doesn't include it. Check File > Options > Add-ins first; if the COM add-in list has no Inquire entry, your license tier is the limit, so switch to side-by-side or formulas.
The report flags everything as changed. One file was saved with a different calculation setting or recalculation state, so stored values differ from formula results. Recalculate both files with F9 before comparing, and confirm the workbook calculation mode matches under Formulas > Calculation Options.
Structural changes break the grid alignment. Inserted or deleted rows shift every downstream cell, so the diff shows a cascade of false changes. Compare a structural summary first—row counts per sheet via =COUNTA(Sheet1!A:A)—and if the counts differ, reconcile the structure before rerunning the cell comparison.
Hidden rows, filtered ranges, or protected sheets suppress results. Unhide all rows and columns, clear filters with Data > Clear, and unprotect sheets with the known password before comparing. Compare Files reads only what's visible and accessible in each workbook.
Very large workbooks stall or truncate the report. Narrow the comparison by closing unrelated workbooks, trimming unused rows and columns with Ctrl + Shift + End checks, and comparing sheet by sheet rather than the whole file.
Frequently Asked Questions
Can I compare two Excel files without any add-in?
Yes. Use View > New Window > View Side by Side with Synchronous Scrolling, or build a lookup-based diff in a blank workbook with XLOOKUP and COUNTIF. Both work in every Excel edition, including Excel for the web and Excel for Mac.
Does Compare Files find differences in formulas or only values?
It flags both, plus named ranges, formats, and VBA code changes, with each change type color-coded separately in the results grid. Use the filter controls in the detail pane to isolate formulas when you only care about logic changes.
Why does my comparison show changes in cells that look identical?
The stored values likely differ by a fraction from floating-point math, or one file holds a manually entered value where the other has a formula. Widen the column decimals with Home > Increase Decimal to see the true stored number before deciding the diff is real.