How to Link Excel Tables Using the Data Model (Without VLOOKUP or XLOOKUP)

Share
How to Link Excel Tables Using the Data Model (Without VLOOKUP or XLOOKUP)

If you've been using VLOOKUP or XLOOKUP to pull data between Excel worksheets, there's a more efficient approach. Excel's Data Model lets you create relationships between tables so you can build PivotTables that pull from multiple sources — without duplicating data or writing complex formulas.

In this tutorial, I walk through setting up two worksheets (Customers and Orders), converting them to Excel Tables, creating a relationship between them, and building a PivotTable that combines data from both. The result is a lightweight file with no duplicated columns.

Excel Customers worksheet with Customer ID, Name, Email, Phone, Address, City, State, Zip Code, Country, and Registration Date columns
The Customers worksheet contains customer details linked by Customer ID

Setting Up the Worksheets

The example uses two worksheets in a single workbook:

  • Customers — Contains Customer ID, Name, Email, Phone, Address, City, State, Zip Code, Country, and Registration Date
  • Orders — Contains Order ID, Customer ID, Order Date, Product Name, Quantity, Unit Price, Total Amount, and Order Status

The key is that both worksheets share a Customer ID column. This is the field that links them together, similar to how VLOOKUP or Index/Match would connect data — but without any formulas.

Converting Ranges to Tables

Before creating a relationship, each worksheet's data must be formatted as an Excel Table. Select any cell in the data range and press Ctrl+T. Excel will detect the range and show the Create Table dialog.

Excel Create Table dialog showing the detected data range with Ctrl+T keyboard shortcut overlay
Press Ctrl+T to convert a data range into an Excel Table

Do this for both the Customers and Orders sheets. Name each table clearly (e.g., "customers" and "orders") using the Table Name field on the Table Design tab. Clear names make relationships easier to manage.

Creating a PivotTable from the Data Model

With both tables created, insert a PivotTable from the Orders table. In the PivotTable dialog, check the option to Add this data to the Data Model. This is the key step that enables multi-table relationships.

In the PivotTable Fields pane, click All (instead of Active) to see both tables listed. When you drag fields from both tables into the PivotTable, Excel will display a yellow banner: "Relationships between tables may be needed."

PivotTable Fields pane showing yellow banner with Auto-Detect and CREATE buttons for table relationships
Excel detects that a relationship is needed between the two tables

Establishing the Relationship

Click Auto-Detect or CREATE in the yellow banner. If you click Create, specify:

  • Table: orders
  • Column: Customer ID
  • Related Table: customers
  • Related Column: Customer ID

Once the relationship is established, the PivotTable can pull Customer Name from the Customers table and Order details from the Orders table — all without VLOOKUP, XLOOKUP, or duplicated data. This approach is especially useful for combining multiple tables in large workbooks.

Why Use the Data Model Instead of Lookup Functions?

  • No duplicate data — Customer names aren't copied into the Orders sheet
  • Smaller file size — Data stays in its original location
  • Automatic updates — Add rows to either table and refresh the PivotTable
  • Scales well — Works with multiple related tables, not just two
  • Familiar PivotTable interface — No new formulas to learn, just use Tables as your PivotTable source

For distinct count calculations, the Data Model approach is the only built-in PivotTable option — another reason to use this method when working with related data.

Extract Unique Product Names in Excel with LEFT + SEARCH + UNIQUE
Step-by-step Excel tip: extract product names from messy order lines using LEFT+SEARCH, then remove duplicates with UNIQUE (wrap SORT to order results). Includes example formula.
Excel Formula Completion: How to Extract Zip Codes from Text with REGEXEXTRACT
Excel’s Formula Completion feature can write formulas for you. Just press the equal sign, and Excel suggests the formula based on your data and column headers. In this tutorial, I demonstrate how it works by tackling a common challenge: extracting zip codes from messy address data where the zip code
Excel Just Got a Brain: Copilot Function & Formula Completion - Live Stream
Live Stream on YouTube and LinkedIn - March 18, 2026
How to Clean Messy Data in Excel with Agent Mode and One Prompt
Excel’s desktop version now has Agent Mode in Copilot, and it is incredible. I’ve already used it to build a complete dashboard automatically, and now I want to show you how it can clean messy data with a single prompt. Identify the Data Problems In this example, I have a

Want to learn more? Visit courses.chrismenardtraining.com for online training courses.

Read more

Copilot Skills in PowerPoint - Live Stream on October 20, 2026

Copilot Skills in PowerPoint - Live Stream on October 20, 2026

𝗠𝗼𝘀𝘁 𝗣𝗼𝘄𝗲𝗿𝗣𝗼𝗶𝗻𝘁 𝘂𝘀𝗲𝗿𝘀 𝗸𝗻𝗼𝘄 𝗖𝗼𝗽𝗶𝗹𝗼𝘁 𝗰𝗮𝗻 𝗰𝗿𝗲𝗮𝘁𝗲 𝘀𝗹𝗶𝗱𝗲𝘀. 𝗙𝗮𝗿 𝗳𝗲𝘄𝗲𝗿 𝗸𝗻𝗼𝘄 𝗮𝗯𝗼𝘂𝘁 𝘁𝗵𝗲 𝟴 𝗯𝘂𝗶𝗹𝘁-𝗶𝗻 𝗖𝗼𝗽𝗶𝗹𝗼𝘁 𝗦𝗸𝗶𝗹𝗹𝘀 𝘁𝗵𝗮𝘁 𝗰𝗮𝗻 𝗰𝗼𝗺𝗽𝗹𝗲𝘁𝗲𝗹𝘆 𝗰𝗵𝗮𝗻𝗴𝗲 𝗵𝗼𝘄 𝘆𝗼𝘂 𝗯𝘂𝗶𝗹𝗱, 𝗶𝗺𝗽𝗿𝗼𝘃𝗲, 𝗮𝗻𝗱 𝗽𝗿𝗲𝘀𝗲𝗻𝘁 𝗮 𝗱𝗲𝗰𝗸. Join me live on October 20, 2026, at Noon Eastern as I demonstrate each Copilot Skill and show practical ways to use them in your presentations. PDF of the 8 Copilot Skills in Pow

By Chris Menard