How to Link Tables in Excel (3 Easy Methods)

Method 1 – Link Tables Using Pivot Tables in Excel

In our dataset, we will use two different tables from two different sheets. Sheet1 contains the Sales Table. This table has 3 columns. These are Salesman, Product Name, and Region.

Link Tables Using Pivot Tables in Excel

Sheet2 contains the Order ID Table. This table has 4 columns: Order ID, Product Name, Month, and Sales.

Link Tables Using Pivot Tables in Excel

Steps:

  • We need to convert our dataset into a table. Select the range of cells in your dataset. We have selected the cells from B4 to D10.

Link Tables Using Pivot Tables in Excel

  • Go to the INSERT tab and select Table.

Link Tables Using Pivot Tables in Excel

  • A Create Table window will appear. Make sure ‘My table has headers’ is selected.

Link Tables Using Pivot Tables in Excel

  • Clicking OK will convert your dataset into a table just like below.

Link Tables Using Pivot Tables in Excel

  • Make an Order ID Table.

Link Tables Using Pivot Tables in Excel

  • Go to the DESIGN tab and change the name of the tables. We have changed Table1 to Sales and Table2 to Order.

Link Tables Using Pivot Tables in Excel

  • Go to the INSERT tab and select Pivot Table.

Link Tables Using Pivot Tables in Excel

  • A Create PivotTable window will pop up. Select ‘New Worksheet’ and ‘Add this data to the Data Model’. Do this for both tables.

Link Tables Using Pivot Tables in Excel

  • A PivotTable Fields window will open. Select the columns you want to link from this window.
  • Select Create.

  • The Create Relationship window will open. Select the tables and columns you want to use for your relationship.

Link Tables Using Pivot Tables in Excel

  • Hit OK and a linked table will appear.

Link Tables Using Pivot Tables in Excel

Read More: How to Link Multiple Cells from Another Worksheet in Excel


Method 2 – Apply Power Pivot to Link Tables

Steps:

  • Activate the Power Pivot feature. Go to the FILE tab and select Options.
  • The Excel Options window will appear. Go to the Add-Ins and select COM Add-ins.
  • Select Go.

Link Tables Using Power Pivot

  • A COM AddIns will open. Select ‘Microsoft Office PowerPivot for Excel 2013’ and click OK.

  • Select the range of the data from your table.

Link Tables Using Power Pivot

  • Go to the POWERPIVOT ribbon and select Add to Data Model.

Link Tables Using Power Pivot

  • A PowerPivot for Excel window will appear. Repeat the steps above for the Order Table.

Link Tables Using Power Pivot

  • Go to Design and select Create Relationship.

Link Tables Using Power Pivot

  • Select the Table and Related Lookup Table for the linked table. You will have to use the same column in both tables for creating a relationship.

  • Go to Home and select PivotTable.

  • A Create PivotTable window will occur. Select where you want to create the pivot table. We selected New Worksheet for this purpose. You can also select Existing Worksheet.

  • Click OK and you will see the new table.

Read More: How to Link Cells in Same Excel Worksheet


Method 3 – Link Multiple Tables Manually

We will use the previous tables for this method. The Sales column of the Order ID table will be added to the Sales table.

Steps:

  • Add a Sales column beside the Region. This new column will be automatically added to the existing table.

  • Insert this formula in E5.
=Sheet2!E5

This formula will link the E5 cell from the Order ID table to our Sales table.

  • Hit Enter and the whole column will be linked in the table.


Things To Remember

To link tables using the pivot table method, we need to have a common column in all tables. Otherwise, we can not create relationships. The PowerPivot feature is available from Excel 2013 version and later.


Download the Practice Book


Further Readings

<< Go Back To Excel Link Cells | Linking in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mursalin Ibne Salehin
Mursalin Ibne Salehin

Mursalin Ibne Salehin holds a BSc in Electrical and Electronics Engineering from Bangladesh University of Engineering and Technology. Over the past 2 years, he has actively contributed to the ExcelDemy project, where he authored over 150 articles. He has also led a team with content development works. Currently, he is working as a Reviewer in the ExcelDemy Project. He likes using and learning about Microsoft Office, especially Excel. He is interested in data analysis with Excel, machine learning,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo