The Only Excel Trick You Need for Cross Referencing Two Spreadsheets

Yes, you can cross reference two Excel spreadsheets. But if you’re copying data manually or using nested IFs across workbooks, you’re setting yourself up for version drift and #REF! errors.

The Setup

You’re managing vendor payments for Acme Corp. One file — Payments_2024.xlsx — holds payment records. Another — Vendors_Master.xlsx — holds verified vendor details: tax ID, address, and status. You need to pull the Status and Tax_ID from the master list into each payment row — but only where the Vendor_Name matches. Here’s what Payments_2024.xlsx looks like (Sheet1, A1:E9):
IDVendor_NameAmountDateStatus
P-101BrightLine Logistics$12,4502024-03-15
P-102Nexus Tech Solutions$8,7602024-03-18
P-103Veridian Builders$24,1002024-03-20
P-104Orion Media Group$5,3202024-03-22
P-105Stellar Labs Inc.$16,8902024-03-24
P-106TerraForm Holdings$9,2002024-03-26
P-107Aurora Design Co.$3,7502024-03-27
P-108Zenith Supply Chain$11,3002024-03-29
And here’s Vendors_Master.xlsx (Sheet1, A1:D10):
Vendor_NameTax_IDAddressStatus
BrightLine LogisticsTX-7742-918421 Harbor Dr, Seattle WAActive
Nexus Tech SolutionsTX-3310-4051900 Pine St, Austin TXActive
Veridian BuildersTX-8821-77677 Oakridge Blvd, Denver COOn Hold
Orion Media GroupTX-2299-1023030 Market St, Philadelphia PAActive
Stellar Labs Inc.TX-5544-8811200 Research Pkwy, San Diego CAActive
TerraForm HoldingsTX-6600-3328800 Greenway Rd, Miami FLInactive
Aurora Design Co.TX-1122-556220 Park Ave, New York NYActive
Zenith Supply ChainTX-9900-773555 Commerce Way, Chicago ILActive
Horizon Data SystemsTX-4433-2216000 Tech Loop, Portland ORActive
Lumina Imaging LLCTX-7788-9921100 Med Plaza, Boston MAOn Hold

The Challenge

You need to fill column E (Status) in Payments_2024.xlsx with matching values from column D of Vendors_Master.xlsx. That sounds simple — until you realize: • The files are saved separately (not in the same workbook) • Vendor names might have extra spaces or inconsistent capitalization (e.g., “nexus tech solutions” vs “Nexus Tech Solutions”) • You’ll want to pull two fields (Tax_ID and Status), not just one • If a vendor is missing from the master list, you don’t want #N/A cluttering your report — you want “Not Found” or blank Can you cross reference two Excel spreadsheets? Yes — absolutely. But doing it right means choosing the right tool for your version and use case.

Walking Through It

We’ll start with XLOOKUP — the cleanest option if you’re on Microsoft 365 or Excel 2021. First, open both files. In Payments_2024.xlsx, click cell E2. Type: =XLOOKUP(B2,'[Vendors_Master.xlsx]Sheet1'!$A$2:$A$11,'[Vendors_Master.xlsx]Sheet1'!$D$2:$D$11,"Not Found",0) That tells Excel: “Look for the value in B2 inside column A of Vendors_Master.xlsx (rows 2–11); if found, return the corresponding value from column D; if not, show ‘Not Found’.” Now — here’s the counterintuitive tip: Don’t close Vendors_Master.xlsx while building the formula. If it’s open, Excel auto-fills the full path. If it’s closed, the formula will include the full file path (like C:\Data\Vendors_Master.xlsx) — which breaks if you move either file. Press Enter. Then drag the formula down to E9. To pull Tax_ID into column F, click F2 and type: =XLOOKUP(B2,'[Vendors_Master.xlsx]Sheet1'!$A$2:$A$11,'[Vendors_Master.xlsx]Sheet1'!$B$2:$B$11,"",0) No “Not Found” this time — we’ll leave blanks instead. Still on Excel 2019 or older? Use VLOOKUP — but add TRIM and EXACT logic first. In E2, try: =IFERROR(VLOOKUP(TRIM(B2),'[Vendors_Master.xlsx]Sheet1'!$A$2:$D$11,4,FALSE),"Not Found") Then press Ctrl+Shift+Enter if you’re in an older version that requires array entry (though modern Excel usually handles it automatically). Better yet: use Power Query. Go to Data → Get Data → From File → From Workbook. Select Vendors_Master.xlsx. Load it as a connection only (don’t load to worksheet). Then go back to Payments_2024.xlsx, select your data range (A1:E9), and choose Data → From Table/Range. In Power Query Editor, go to Merge Queries → Merge Queries as New. Choose Vendor_Name from both tables. Expand the merged column and pick Status and Tax_ID. Click Close & Load. This method survives file moves, updates automatically, and handles duplicates gracefully.

The Result

After applying XLOOKUP, here’s your updated Payments_2024.xlsx Sheet1 (A1:F9):
IDVendor_NameAmountDateStatusTax_ID
P-101BrightLine Logistics$12,4502024-03-15ActiveTX-7742-918
P-102Nexus Tech Solutions$8,7602024-03-18ActiveTX-3310-405
P-103Veridian Builders$24,1002024-03-20On HoldTX-8821-776
P-104Orion Media Group$5,3202024-03-22ActiveTX-2299-102
P-105Stellar Labs Inc.$16,8902024-03-24ActiveTX-5544-881
P-106TerraForm Holdings$9,2002024-03-26InactiveTX-6600-332
P-107Aurora Design Co.$3,7502024-03-27ActiveTX-1122-556
P-108Zenith Supply Chain$11,3002024-03-29ActiveTX-9900-773

What Could Go Wrong

Three real mistakes I’ve debugged dozens of times: 1. Case-sensitive mismatches XLOOKUP and VLOOKUP are case-insensitive by default — but if your master list uses “NEXUS TECH SOLUTIONS” and your payments list says “nexus tech solutions”, leading/trailing spaces break the match. Fix: wrap both sides in TRIM(), or better — use Power Query’s Text.Trim() during import. 2. Broken links when files move If Vendors_Master.xlsx was closed when you built the formula, Excel embeds the full file path. Move either file? All formulas turn to #REF!. Solution: Keep both files open during setup, or switch to Power Query — it stores relative paths if both files live in the same folder. 3. Accidentally referencing the wrong sheet tab It’s easy to type [Vendors_Master.xlsx]List instead of [Vendors_Master.xlsx]Sheet1. Excel won’t warn you — it’ll just return #REF! or zero. Always double-check the sheet name in the formula bar, and use the mouse to click-select the range instead of typing it.

Next Steps — Your Shortcut Cheat Sheet

TaskShortcutNotes
Open Go To dialog (to jump to named range or cell)F5 or Ctrl+GType [Vendors_Master.xlsx]Sheet1!A1 to navigate directly
Edit formula in formula barF2Critical when adjusting external references
Toggle between relative/absolute refsF4Press once = $A$1, twice = A$1, thrice = $A1, four times = A1
Refresh all external linksAltDLRUpdates links without reopening source files
Emily Watson

Emily Watson

Emily is an expert in workplace culture and team dynamics. Her articles help professionals navigate interpersonal challenges and build better coworker relationships.