Computer >> Computer tutorials >  >> Software >> Office

Excel Full Outer Join: Step-by-Step Power Query Tutorial

Example 1 – Create a Full Outer Join for Matched Values in Excel

There are 2 sample tables. They showcase a Sales Report and Product Data.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

To create a new table with all data:

  • Click any cell in the first dataset.
  • Go to the Data tab and select From Table/Range.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • In the Create Table window, the cell range to create a table is automatically selected.
  • Click OK and the Power Query Editor will be displayed.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Select Close & Load To in the Home tab.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Select Only Create Connection in the Import Data dialog box and click OK.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Follow the same procedure for the Product Data table.
  • You will see 2 connected tables in the Queries & Connections panel.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Right-click Table2 and choose Reference.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Select Home > Combine > Merge Queries in the Power Query Editor window.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • In the Merge window, select Product ID and Product Name columns by pressing Ctrl.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Choose Table3 and select the columns that are in Table2.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Choose Full Outer (all rows from both) as Join Kind.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

A new column is added: you can see the row values by left-clicking.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Expand this column by pressing the both-sided arrow shown below.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

You will see the list of columns in Table3.

  • Select the columns you need to show after merging. Here, all columns are selected. You can but deselect them by checking Use original column name as prefix.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Click OK.
  • In the Import Data window, select Table and New worksheet.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Click OK and you will get a Full Outer Join table:

Excel Full Outer Join: Step-by-Step Power Query Tutorial

Matched values are aligned together and the rows with unique values have blank cells.

Read More: How to Perform Outer Join in Excel

Example 2 – Perform a  Full Outer Join for Unique Values in Excel

These are the sample datasets containing unique values.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Connect both tables using the Power Query Editor as described in the first example.
  • Go to the Data tab and click Get Data.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Choose Merge in Combine Queries.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • In the Merge window, choose Table7 and Table8.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Select Product ID and Product Name from each table.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Select Full Outer (all rows from both) in Join Kind.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Click OK.
  • In the Power Query Editor, expand the last column with the selections shown below.
  • Uncheck Use original column name as prefix.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Click OK and choose Table and New Worksheet in the Import Data dialog box.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

  • Click OK to see the output.

Excel Full Outer Join: Step-by-Step Power Query Tutorial

Read More: How to Inner Join in Excel

Download Practice Workbook

Download the practice file.

Related Articles

  • How to Combine Two Tables Using Power Query in Excel
  • How to Perform Left Join in Excel
  • How to Perform Left Outer Join in Excel
  • How to Create Cross Join in Excel

<< Go Back to Power Query Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!