|
Home > Pivot > Create > Multiple Tables Use Power Query to Combine Tables in Excel
|

To create a pivot table from table data on two or more worksheets, use Excel's Power Query (also called Get & Transform Data). With a few simple steps, you can combine all the data, as long as those tables have one or more column headings with identical names.
Watch this video see the steps, and the written instructions are below the video.
To combine the data from two related tables with this technique, there must be at least one common column, where the column names are an exact match in the two tables.
In this example, the Excel workbook has sales data from two regions - East and West. The data is in two separate Excel tables, and on two different sheets.

Before you combine table data with Power Query, be sure that the source data is in named Excel Tables. The technique will not work if the data is just in a normal worksheet list.
In the short video below, I show the steps for setting up a named table, and there are written instructions on the Creating an Excel Table page.
The two tables are not identical, but there are several common columns, where column headers in one table have an exact match in the other table.
There are also columns without a match in the other table:

To combine the tables in Power Query, the first step is to create a query for each table, East and West, to get its data.
You can use the one of the following methods to get started:
OR
Both methods for getting started are described below.
If you're using commands from the Excel Power Query tab, follow these steps:

If you're NOT using the Power Query tab commands, follow these steps for the Get & Transform commands:

After clicking the button, on either the Power Query tab or the Data tab, the Power Query Editor window opens.
In that window, shown in the screen shot below, you can see the data from the East region.

A new worksheet is inserted, with the data from the East table.

Next, follow the steps below, to get the West table data from the second table.
In the Power Query Editor window that opens, you can see the data from the West region.

Next, you will create a third query. This query will combine the data from the two new tables, with separate East and West data, into one merged table.
You can use the one of the following methods to get started with the 3rd query:
OR
Both methods for getting started are described below.
If you're using Power Query:

If you're NOT using Power Query:

The Append window opens, where you can choose which tables to merge.
The Append command will:
Follow these steps in the Append window:

Next, the Power Query Editor window opens, showing the combined data, from the East and West regions.
For columns that are unique to one of the tables, rows from the other table will show null. You can see an example of that in the Tax column and Manager column in the screenshot below.

A new worksheet appears, with the resulting table that contains combined data from the merged tables.
Note: Data that showed "null" in the Power Query Editor are blank cells in the worksheet table.

Now that the two tables are appended, you can use the combined data to create a pivot table, that shows the East and West sales records.

The PivotTable from Table or Range dialog box opens.
An empty pivot table layout appears in the location that you selected
In the screen shot below:
This pivot table gives you a summary of the datasets in the two original tables.
You can see the East and West data listed separately, or you could remove the Region field, to see combined totals for each sales item.

To see the steps for combining 3 tables with Power Query, watch this short video tutorial by Mike "ExcelIsFun" Girvin.
If you have more than 3 tables, use the same technique to add the extra tables.
Get the sample Combine Tables With Power Query file. The zipped Excel file is in xlsx format, and does not contain any macros. There are two tables, with East and West data. The workbook does not contain any connections - follow the steps on this page, to create the queries that combine the table data.
Don't miss my monthly Excel newsletter! You'll get quick tips, article links, and a bit of fun. Add your email, and click Sign Up.
Next, when you get my reply, click the Confirm button. I add this step to protect you from spam!
Last updated: August 12, 2026 11:40 AM