In Excel: open both files, use View ▸ View Side by Side with Synchronous Scrolling for a visual pass, and put =IF(EXACT(Sheet1!A1,Sheet2!A1),"","DIFF") on a third sheet for a cell-by-cell answer.
Only in A: 2 · Only in B: 1
What this does
Which method fits depends on what "different" means to you. A formula sheet that mirrors the two ranges and flags mismatches is exact, auditable and works in every Excel version. Conditional formatting with a formula rule highlights the differences in place. View Side by Side is a human eyeball check, not a report. And if both sheets are keyed lists rather than identical grids, the honest comparison is a lookup on the key — XLOOKUP or COUNTIF — because row 40 in one file is rarely row 40 in the other. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. For “excel compare two sheets”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected sheet change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a layout choice that keeps the sheet readable and sortable useful in real work: repeatable, auditable, and not dependent on memory or luck.
A worked example
Two versions of the same price list sit in Sheet1 and Sheet2, both A1:D500. On a new sheet, A1 = =IF(EXACT(Sheet1!A1,Sheet2!A1),"","DIFF") filled across to D and down to row 500. Every cell that differs reads DIFF; Ctrl+F for "DIFF" or filter the column to jump to them. If instead the two lists share a SKU key but not a row order, use =IF(COUNTIF(Sheet2!$A$2:$A$500, A2)=0, "missing in v2", "") down the key column. Two versions of the same file turn up constantly — before and after an edit, your copy and a colleague's, this month's export and last month's — and eyeballing them is exactly where the missed change hides. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. Treat “excel compare two sheets” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.
Common mistakes
- Using = instead of EXACT, which reports "Paris" and "paris" as identical because = is case-insensitive.
- Comparing row by row when the two files are sorted differently — every row after the first insert reads as changed.
- Ignoring trailing spaces from an export; wrap both sides in
TRIMbefore comparing. - Comparing displayed values rather than underlying ones, so two cells showing 1.5% differ in the 6th decimal and nothing tells you.
- Assuming a visual side-by-side scroll caught everything on a 500-row sheet.
Frequently asked questions
How do I compare two Excel files for differences?
If they share a layout, put =IF(EXACT(File1cell, File2cell),"","DIFF") on a third sheet and fill it over the range. If they are keyed lists, match on the key with XLOOKUP or COUNTIF instead of by row position.
Is there a built-in compare tool?
Spreadsheet Compare ships with Office Professional Plus and Microsoft 365 Apps for enterprise on Windows, and produces a full change report. It is not in Excel for Mac or the standard consumer editions.
How do I highlight the differences instead of listing them?
Select the range, then Home ▸ Conditional Formatting ▸ New Rule ▸ Use a formula to determine which cells to format, and enter =A1<>Sheet2!A1 with a fill colour.
Why does my comparison flag rows that look identical?
Almost always trailing spaces, numbers stored as text, or a date held as text on one side. Compare =TRIM(A1) against =TRIM(Sheet2!A1) and check the two cells' data types.
Other ways people ask this
On the way here you may have searched this as “how to compare two excel sheets”, “how can i compare two excel sheets”, “excel two sheets compare” and “compare two excel” — it is all the same task, and this page is the single, complete answer to it.
This guide also answers
- compare 2 excel sheets
- compare 2 excel spreadsheets
- how do i compare two excel spreadsheets
Platform & version notes
- Several of those searches mention Google Sheets — and the good news is that "excel compare two sheets" works there almost identically: the formula syntax carries over unchanged, only the surrounding menus sit across the top of the screen instead of in a ribbon.
Can I do this in Google Sheets too?
Yes. "excel compare two sheets" carries over to Google Sheets with the same formula and almost the same steps — the menus are arranged differently, but the result is identical.
Why do people search for this in so many different ways?
Because the same task has many names. “how to compare two excel sheets”, “how can i compare two excel sheets”, “excel two sheets compare” all point at the one operation explained on this page, which is why they all lead here.