Most people assume Copilot for Excel can compare two documents like WinMerge or Beyond Compare. They’re wrong. Copilot doesn’t open, read, or diff separate workbooks — it only sees the active workbook, and only what’s visible in the current worksheet. If you’ve ever pasted two tables side-by-side and asked Copilot “show differences”, you got vague suggestions or errors. That’s not a bug — it’s by design.
The Setup
You’re an operations analyst at Nexus Logistics. Your team receives monthly vendor invoices in Excel (File A) and cross-checks them against internal purchase records (File B). Last month, Vendor ID V-7832 billed $12,490 for freight — but your system shows $11,650. You need to find all mismatches across 9 vendors, 4 columns: Vendor ID, Invoice Date, Amount, and Status.
Here’s File A (Vendor_Invoice_Q2.xlsx, Sheet1, A1:D9):
| Vendor ID | Invoice Date | Amount | Status |
|---|---|---|---|
| V-7832 | 2024-05-12 | $12,490.00 | Paid |
| V-4109 | 2024-05-14 | $8,210.50 | Pending |
| V-2267 | 2024-05-16 | $15,300.00 | Paid |
| V-9155 | 2024-05-18 | $6,722.80 | Paid |
| V-3301 | 2024-05-20 | $9,440.00 | Disputed |
| V-6744 | 2024-05-22 | $11,050.25 | Paid |
| V-8820 | 2024-05-24 | $4,930.75 | Pending |
| V-5513 | 2024-05-26 | $13,875.00 | Paid |
The Challenge
Copilot can’t load File B (Purchase_Records_Q2.xlsx) unless you copy its data into the same workbook. Even then, it won’t auto-detect structure — you must define keys and comparison logic. Worse: if dates are formatted as text in one file and true dates in the other (e.g., "05/12/2024" vs. 45076), Copilot will treat them as non-matching even when identical. And if Vendor ID has trailing spaces in File A but not File B? It fails silently — no warning, just blank results.
The core problem isn’t technical limitation — it’s expectation mismatch. People ask “Can Copilot compare two Excel documents?” hoping for point-and-click diffing. The answer is: only if you prepare both datasets inside one workbook, clean them first, and phrase prompts precisely.
Walking Through It
Step 1: Open both files. In File A, select A1:D9 → Ctrl+C. Switch to File B → right-click Sheet1 tab → Move or Copy… → check “Create a copy” → OK. Paste into the new sheet (Sheet1 (2)) at A1. Now both tables live in one file.
Step 2: Clean inconsistencies. In Sheet1 (2), select column B (Invoice Date). Press Alt+H+F+M → choose “Date” → OK. Repeat for File A’s date column. Then run =TRIM(A2) in E2 of both sheets to strip spaces from Vendor IDs.
Step 3: Stack side-by-side. Copy cleaned File A (A1:E9) to Sheet2, columns A–E. Paste cleaned File B (A1:E9) starting at column G (so G1 = Vendor ID, H1 = Invoice Date, etc.). Now you have File A (A:E) and File B (G:K) on the same sheet.
Step 4: Ask Copilot — but precisely. Select cells A1:K9. Click the Copilot icon → type: “Compare columns A and G (Vendor ID), C and I (Amount), D and H (Invoice Date). Flag rows where any value differs. Return Vendor ID, field name, File A value, File B value.”
Before (Sheet2, A1:K9):
| A | B | C | D | E | F | G | H | I | J | K |
|---|---|---|---|---|---|---|---|---|---|---|
| V-7832 | 2024-05-12 | $12,490.00 | Paid | V-7832 | V-7832 | 2024-05-12 | $11,650.00 | Paid | V-7832 | |
| V-4109 | 2024-05-14 | $8,210.50 | Pending | V-4109 | V-4109 | 2024-05-14 | $8,210.50 | Pending | V-4109 |
After Copilot runs (output appears in a new sheet or chat pane):
| Vendor ID | Field | File A Value | File B Value |
|---|---|---|---|
| V-7832 | Amount | $12,490.00 | $11,650.00 |
| V-3301 | Status | Disputed | Paid |
| V-8820 | Invoice Date | 2024-05-24 | 2024-05-23 |
The Result
This is what Copilot *can* deliver — a clean, actionable delta table. No formatting noise. No duplicate rows. Just Vendor ID, field name, and mismatched values. For V-7832, it isolates the $840 discrepancy in Amount. For V-3301, it flags status misalignment — critical for audit trails.
| Vendor ID | Field | File A Value | File B Value | Action |
|---|---|---|---|---|
| V-7832 | Amount | $12,490.00 | $11,650.00 | ✓ Verify invoice line item |
| V-3301 | Status | Disputed | Paid | ✓ Check payment ledger |
| V-8820 | Invoice Date | 2024-05-24 | 2024-05-23 | ✓ Confirm timezone handling |
| V-2267 | Amount | $15,300.00 | $15,299.99 | ✓ Round to nearest cent |
| V-5513 | Status | Paid | — | ✓ Investigate missing record |
What Could Go Wrong
Mistake #1: Asking Copilot to “compare these two tabs” without selecting data first. Copilot sees only the active cell — usually A1. It returns “I don’t see two datasets” or hallucinates formulas. Fix: Always select the full range (e.g., A1:D9 and G1:K9) before prompting.
Mistake #2: Leaving merged cells in either source table. Copilot treats merged cells as blank for all but the top-left cell. Vendor IDs vanish. Dates disappear. You’ll get false positives. Fix: Before copying, unmerge all cells (Home → Merge & Center → Unmerge Cells).
Mistake #3: Using relative references in prompts. Saying “compare column 1 and column 7” fails if you later insert columns. Copilot doesn’t resolve A:A or G:G dynamically. Fix: Name ranges first (Formulas → Define Name → “FileA_VendorID”, “FileB_Amount”) — then reference names in your prompt.
Here’s your immediate next step — copy-paste this into Copilot after preparing your side-by-side layout:
Compare named ranges FileA_VendorID and FileB_VendorID, FileA_Amount and FileB_Amount, FileA_Date and FileB_Date. List mismatches with Vendor ID, field name, File A value, File B value. Exclude rows where all four fields match.