Merging two tables
This instruction will guide you on how to merge information scattered in two or more tables into a single table.
Table of contents
Purpose of this instruction
When structuring information within tables it is necessary to keep related data together. Sometimes it is necessary to combine this information into a Power Query. This will provide an insightful summary of data scattered in several tables. This instruction set will follow the procedure using Power Query.
Instructions
Saving a Table as a Connection
Open Excel spreadsheet with the tables you wish to merge.
Select [Data] from the large toolbar at the top.
Click on a cell in any of tables you wish to merge.
Select From Table/Range in the Get & Transform section of the [Data] menu.
A popup called Power Query Editor will appear
Click [File] from the large toolbar of the Power Query Editor.
Select Save & Load To from the dropdown menu
A box with several save options will appear on your screen
Select the Only Create Connection option.
Click OK
Progress Check 1: A menu should pop out on the right side of your screen called Queries & Connections and you should see your table there.
Repeat Steps 3 through 8 for all tables you wish to merge.
Merging Connections into a Single Table
Select [Get Data] from the [Data] menu.
Select Combine Queries from the dropdown.
Click Merge.
- Select the two tables you wish to merge from the dropdown bars.
- Click on the single column you wish to match the tables by on both tables.
Select Left Join from the Join Kind dropdown menu.
- Click OK
A Power Query editor should appear on your screen.
- Click on the two arrows pointing in opposite directions above the table of labels.
A Box of options should appear.
Unselect Select all columns.
Click the column you want to display.
Click OK
Click [File] from the menu at the top.
Save in the format you wish.
Well Done!
If you followed this guide you can now make queries for individual tables and merge them. This will allow you to quickly create powerful and informative tables while keeping your source information in separate tables.