How to Merge Tables in Excel: Methods, Tools, and What to Consider
Merging tables in Excel sounds straightforward until you actually sit down to do it. Depending on how your data is structured, where it lives, and what "merged" actually means for your workflow, you could be looking at a five-second task or a multi-step process requiring formulas, Power Query, or VBA. Here's a clear breakdown of how table merging works in Excel and what shapes the best approach for different situations.
What "Merging Tables" Actually Means in Excel
The term gets used loosely, so it helps to clarify. In Excel, merging tables generally refers to one of two things:
- Combining rows ��� stacking two tables with the same columns on top of each other (also called appending)
- Combining columns — joining two tables based on a shared field, like a customer ID or product code (also called a lookup join or merge)
These are fundamentally different operations. Appending adds more rows. Joining adds more columns. Knowing which one you need determines which tool you should reach for.
Method 1: Copy and Paste (Simple Appending)
For basic row-combining tasks, copy-paste works fine. If you have two tables with identical column structures, you can:
- Select all rows in the second table (excluding headers)
- Copy them
- Paste directly below the last row of the first table
When this works well: Small datasets, one-time tasks, tables that don't change frequently.
Where it breaks down: The moment your source tables update, your merged result doesn't. There's no live connection. For anything that needs to stay current, this approach creates a maintenance problem fast.
Method 2: VLOOKUP or INDEX/MATCH (Column Joining)
When you want to pull specific columns from one table into another based on a shared key, VLOOKUP and INDEX/MATCH are the classic Excel tools.
For example: you have a sales table with order IDs and a customer table with customer names and regions. Using VLOOKUP, you can pull the customer name into the sales table wherever the customer ID matches.
VLOOKUP limitations to know:
- It only looks to the right — the lookup column must be the leftmost column in your range
- It returns the first match only, which causes issues with duplicate keys
- It can be slow on very large datasets
INDEX/MATCH is more flexible — it can look left or right and handles more complex match scenarios. For most column-joining tasks between two tables, it's the more reliable formula pair.
Method 3: Power Query (The Scalable Approach) 🔄
Power Query is Excel's built-in data transformation tool, available in Excel 2016 and later (and in Microsoft 365). For serious table merging — especially when tables update regularly — it's the most powerful option.
Power Query supports two primary operations:
| Operation | What It Does | Power Query Term |
|---|---|---|
| Stack tables vertically | Combines rows from multiple tables | Append Queries |
| Join tables on a shared key | Adds columns from one table to another | Merge Queries |
How to Merge Queries in Power Query
- Go to Data > Get Data > Launch Power Query Editor
- Load both tables into Power Query
- Select one query, then go to Home > Merge Queries
- Choose the second query and select the matching columns from each table
- Choose your join type (more on this below)
- Expand the merged column to select which fields to bring in
- Load back to Excel
The result is a refreshable query. When your source data changes, you hit Refresh and the merged table updates automatically.
Join Types Matter
Power Query offers several join types, and choosing the wrong one changes your output significantly:
- Left Outer — keeps all rows from the first table, adds matching data from the second
- Inner — keeps only rows that have matches in both tables
- Full Outer — keeps all rows from both tables, fills gaps with nulls
- Left Anti / Right Anti — returns rows that don't match, useful for finding gaps
For most merges where you want to enrich your main table with data from a secondary one, Left Outer is the default starting point.
Method 4: Excel Formulas with Structured Tables
If your data is formatted as official Excel Tables (Insert > Table, or Ctrl+T), you get structured references that make formulas easier to read and maintain. Functions like XLOOKUP — available in Microsoft 365 and Excel 2019+ — handle many join scenarios more cleanly than VLOOKUP:
XLOOKUP searches in any direction, handles missing matches with a custom fallback value, and doesn't require the lookup column to be in a specific position. For users on supported versions, it largely replaces the need for VLOOKUP in joining scenarios.
Factors That Shape the Right Approach
Several variables determine which method actually fits your situation:
Excel version — Power Query and XLOOKUP aren't available in older versions. Users on Excel 2013 or earlier have fewer native options and may need to rely on VLOOKUP or manual processes.
Dataset size — Copy-paste and formula-based approaches get sluggish with tens of thousands of rows. Power Query handles large datasets more efficiently.
Update frequency — Static data favors simpler methods. Data that refreshes weekly or daily strongly favors Power Query's automated refresh capability.
Relationship type — One-to-one matches are simpler. One-to-many relationships (where one key maps to multiple rows) behave differently across methods and need careful handling to avoid duplicated or dropped rows.
Skill level with Excel — Power Query has a learning curve. For users unfamiliar with query editors, starting with XLOOKUP or structured table formulas is often more practical, even if slightly less powerful. 🧩
Common Pitfalls to Watch For
- Duplicate keys causing unexpected row multiplication in Power Query merges
- Inconsistent formatting between tables — mismatched date formats, trailing spaces, or capitalization differences that prevent keys from matching
- Column header mismatches breaking Append operations
- Circular references if you accidentally reference the output table inside the query that builds it
Cleaning data before merging — trimming whitespace, standardizing formats, ensuring key columns are consistent — saves significant troubleshooting time later. 🛠️
The Variable That Changes Everything
The method that makes sense for your merge depends on how your data is set up, how often it changes, which Excel version you're running, and how complex the relationship between your tables actually is. A simple one-time stack of two tidy tables needs nothing more than copy-paste. A monthly refresh of joined sales and inventory data from two structured sources is a different problem entirely — and the tools that handle it cleanly reflect that difference.