Bring columns from a second table into your first — a SQL-style join — by matching on a shared key. A VLOOKUP (or XLOOKUP) per added column pulls the related data in.
The example
Adding a price column to an orders list.
| A | B | C | |
|---|---|---|---|
| 1 | Order | Product | Price (joined) |
| 2 | #1 | P-10 | $12.00 |
The formula
One lookup per column you’re adding:
How it works
A lookup acts like a join:
- Your main table has a key column (e.g. Product). The second table has that key plus the columns you want.
- For each added column,
VLOOKUP(key, secondTable, colIndex, FALSE)pulls the matching value. - Use XLOOKUP to return several columns at once:
XLOOKUP(B2, ids, table[price]:table[stock])spills them. - Wrap with IFERROR to flag keys that have no match in the second table.
Big joins? For thousands of rows or multi-column merges, Power Query’s Merge is faster and refreshable than a column of lookups. Formula lookups are perfect for live, lightweight joins right on the sheet.
Try it: interactive demo
Pick a product; join its price.
Variations
XLOOKUP multi-column
Add several columns at once:
Flag unmatched keys
No row in table 2:
Power Query merge
Data → Get Data → Merge Queries for big joins.
Pitfalls & errors
Exact key (FALSE). Joins need an exact key match — approximate mode returns wrong rows.
Duplicate keys. VLOOKUP returns the first match; if the second table has duplicate keys, you only get one. De-dupe it first.
Convert to values when stable. A column of live lookups recalculates constantly; paste as values once the join is final for big datasets.
Practice workbook
Frequently asked questions
How do I merge two tables in Excel by a key?
How do I add several columns from another table at once?
When should I use Power Query instead?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class