Excel Power Query: Merge Multiple Tables Easily
In this article
To merge multiple tables in Excel Power Query, first load each table into Power Query (Data > From Table/Range), then use Home > Merge Queries (or Merge Queries as New) to join two at a time on matching key columns, expanding the result, and repeating for each additional table. This lets you combine data from several sheets or workbooks into one clean table that refreshes automatically instead of copying and pasting by hand.
What You'll Need
- Excel 2016 or later on Windows, or Excel 2019/2021 or Microsoft 365 on Mac (Power Query is built in; older versions need the free Power Query add-in).
- Each source table formatted as a proper Excel Table (select the range, then Insert > Table) or stored in a workbook you can open.
- At least one column in every table that contains matching values — a shared ID, name, date, or code — to use as the join key.
- Column headers in row 1 with no blank rows above them.
Menu labels can differ slightly by Excel version, device, and region. The steps below are written for Excel on Windows; Mac equivalents are noted where they differ.
Step-by-Step
- Convert each source range to a Table. Select the data, go to Insert > Table, confirm the range and that "My table has headers" is ticked, and click OK. Give each table a clear name in Table Design (or Table) > Table Name. Repeat for every table you want to merge.
- Load the first table into Power Query. Click inside the table, then go to Data > From Table/Range. The Power Query Editor opens in a new window.
- Load the remaining tables as queries. In the Power Query Editor, use Home > New Source > Excel Workbook (or Table/Range) to bring in each additional table. Each one appears as a separate query in the Queries pane on the left. Alternatively, close and load each table to the Data Model first, then use Data > Get Data > From Other Sources > From Table/Range for each.
- Check the key columns. In each query, confirm the column you will join on has the same data type (for example, both Text or both Whole Number). Click the data-type icon in the column header to change it if needed. Mismatched types are the most common cause of merge errors or missing rows.
- Start the merge. Select the first query in the Queries pane, then go to Home > Merge Queries (or Merge Queries as New to keep the originals intact). In the dialog, choose the second query from the dropdown, click the matching key column in each table so both are highlighted, and pick a join kind (Inner, Left Outer, Right Outer, Full Outer, etc.). Click OK.
- Expand the merged column. A new column appears containing the word "Table" in each row. Click the expand icon (two arrows) in that column header, untick "Use original column name as prefix" if you prefer clean names, select the columns you want to bring in, and click OK.
- Repeat for each additional table. With the merged query selected, run Home > Merge Queries again and join it to the next table on its key column, then expand. Continue until all tables are combined. Each merge adds one more step to the Applied Steps list on the right.
- Clean up. Remove helper columns, rename columns, filter out blank keys, and reorder columns as needed using the right-click menu and the Transform tab.
- Load the result. Go to Home > Close & Load > Close & Load To, choose Table (for a worksheet) or Only Create Connection (if you will add it to the Data Model), and click OK. The combined table appears in a new sheet.
- Refresh when data changes. Right-click the output table and choose Refresh, or use Data > Refresh All. Power Query re-runs every step, so new rows in the source tables flow through automatically.
Common Mistakes
- Mismatched data types on the key column — one table stores IDs as text, another as numbers, so nothing matches. Set both to the same type before merging.
- Leading or trailing spaces in text keys cause silent mismatches. Use Transform > Format > Trim and Clean on the key column first.
- Duplicate keys in one table multiply rows in the result (a many-to-many join). Check for duplicates with Home > Remove Duplicates on the key column if you expect one row per key.
- Merging the wrong query — the dialog defaults to the currently selected query, so confirm both sides before clicking OK.
- Editing the output table directly — changes are lost on refresh. Always edit in the Power Query Editor.
- Case sensitivity — Power Query merges are case-sensitive by default in some configurations; inconsistent capitalisation can drop matches.
Tips
- Use Merge Queries as New while building so you keep the original queries as a fallback.
- Name your queries descriptively (for example, Sales_2024, Customers) before merging; the expand dialog uses these names.
- For three or more tables with the same structure (same columns, different months), Append Queries (Home > Append Queries) stacks them vertically, which is often what you actually want instead of a merge.
- Add an Index column (Add Column > Index Column) if you need a stable row identifier after merging.
- Keep source tables in the same workbook or in a folder, and use Data > Get Data > From File > From Folder to combine many files at once.
Troubleshooting
- Merge returns all nulls or empty rows: check data types and trim spaces on both key columns; confirm you picked the correct columns in the dialog.
- Row count explodes after merge: duplicate keys on one side. Remove duplicates or choose a join kind that fits your data.
- "Expression.Error" or "We couldn't find the table": a source table was renamed or deleted. Rename it back or update the step in the Applied Steps list.
- Refresh is slow: reduce columns early (Remove Other Columns), filter rows before merging, and avoid loading intermediate queries to worksheets.
- Column names clash: Power Query appends a suffix; rename columns before merging or untick the prefix option when expanding.
- If that did not work: close without saving, reopen the workbook, and rebuild the merge step by step, checking the preview at each stage.
Frequently Asked Questions
Can I merge more than two tables at once?
No — Power Query merges two queries per step. Chain merges one at a time; each adds a step you can edit later.
What is the difference between Merge and Append?
Merge joins tables side by side on a matching key column. Append stacks tables with the same columns on top of each other.
Does merging change my original data?
No. Power Query reads the source tables and builds a new query; the originals stay untouched.
Why do some rows disappear after merging?
An Inner join keeps only rows with matches in both tables. Choose Left Outer or Full Outer to keep unmatched rows.
Can I merge tables from different workbooks?
Yes. Use Data > Get Data > From File > From Workbook for each file, then merge the resulting queries.
Will the merged table update automatically?
It updates when you refresh (Data > Refresh All). It does not refresh live as you type.