Worksheet Relationships in Excel: Link Sheets Guide
In this article
You create a relationship between worksheets in Excel when one sheet's data needs to be looked up, summed or filtered against another sheet's data. Excel itself does not let you draw a visual link between two sheets in a normal workbook; what you actually do is build a formula or a lookup that points from one sheet to another using a cell reference like =Sheet2!A1, or you load both tables into the Data Model and define a proper relationship there. This guide covers both routes and explains when each one is the right tool.
Nothing here needs an add-in or a paid feature. Labelling in menus can vary slightly between Excel versions, desktop and mobile, and Windows and Mac, so if a name looks different, look for the closest equivalent.
What You'll Need
- A workbook with at least two worksheets that share a common column, such as an ID, a product code or a customer name
- The desktop version of Excel for Windows or Mac if you want to use the Data Model and its relationship view; Excel for the web and the mobile apps handle formulas, but the full relationship tools and Power Pivot features are limited or absent there
- Clean data: one header row per table, no blank rows inside the data, and no merged cells in the columns you are matching
- A free column where the results will go, so you do not overwrite existing values
Step-by-Step
- Decide what "relationship" means for your goal. If you just need to pull a value from another sheet, you need a formula. If you need to summarise or pivot across two tables that share an ID without flattening them into one big list, you need the Data Model. Do not set up the Data Model for a simple one-cell lookup; it is more work than necessary.
- Prepare both sheets as proper tables. On each sheet, select the data and use Insert > Table, making sure "My table has headers" is ticked. Give each table a clear name in Table Design > Table Name, for example SalesTable and ProductsTable. Tables make ranges expand automatically and are required for the Data Model route.
- Check the key column on both sheets. The column you join on must contain the same kind of value in both places. Text and numbers that look identical are treated differently: an ID stored as text in one table and as a number in the other will not match. Convert one side to the other before you continue, using Text to Columns or by multiplying by 1 in a helper column.
- For a simple link between sheets, write a direct reference. Click the cell where you want the value, type
=, then click the other sheet's tab and click the cell you want to show. Press Enter. Excel writes something like=Sheet2!B4. Copy this down the column if you need the same position from several rows. - For a lookup by key, use XLOOKUP or VLOOKUP. A typical XLOOKUP looks like this:
=XLOOKUP(A2,ProductsTable[Code],ProductsTable[Price],"Not found"). This reads: take the code in A2, find it in the Code column of the Products table, and return the matching Price. The fourth argument gives a clean result when nothing matches. VLOOKUP works too but requires the key to be the leftmost column of the lookup range. - Fill the formula down and confirm the references. Relative references shift as you copy; ranges you do not want to move need $ signs or structured table names like
ProductsTable[Price]. Press F4 to cycle through absolute and relative options on desktop. - For a real Data Model relationship, load each table separately. With each table selected, go to Data > From Table/Range, which opens Power Query. When the preview looks correct, use Close & Load and choose to add the data to the Data Model rather than a plain sheet.
- Open the relationship view. Go to Data > Manage Data Model (older versions call this Power Pivot > Manage). In the diagram view, drag the key field from one table onto the matching key field in the other. Excel will show a line between them.
- Confirm the cardinality and direction. Excel normally detects one-to-many relationships automatically. If it reports that the relationship cannot be created, it means one of the key columns has duplicate values or blanks. Fix the duplicates in the table that should be unique.
- Use the relationship in a PivotTable. Insert > PivotTable, choose "Add this data to the Data Model", then place fields from different tables in Rows and Values. The join you defined lets Excel combine them without you merging the source sheets.
- Test with a known example. Pick one row, note the value you can verify by eye on the source sheet, and check that the formula or PivotTable returns it. This catches mismatched keys and off-by-one ranges before they spread.
Common Mistakes
Mixing text and number keys. This is the single most common cause of blank lookups. A trailing space or a number formatted as text will silently fail to match.
Referencing the wrong sheet name. Sheet names containing spaces need apostrophes: ='Sales Data'!C2. Without them, Excel throws an error or points at the wrong range.
Deleting or renaming a sheet that formulas depend on. Direct references break into #REF! if the sheet is removed, and renaming changes the name inside every formula. Prefer table names, which survive sheet renames.
Loading one table into the Data Model and leaving the other on a sheet. Both must be in the model for a relationship to work between them.
Assuming the relationship view is available in every Excel build. Excel for the web and mobile apps do not offer the full Manage Data Model workflow; use desktop Excel for that part.
Tips
Use structured references such as SalesTable[Amount] instead of A1 ranges. They read better, expand with the table, and do not break when rows are inserted.
Set up a small "check" cell that counts unmatched lookups, for example with COUNTIF plus the same criteria, so data problems surface instead of hiding.
If you are linking more than two tables, name the key columns identically where possible. It makes the relationship view far easier to read and reduces mistakes when you drag fields.
Keep source tables on separate sheets in a fixed shape, and build a dashboard sheet that only contains formulas and PivotTables. That way you never edit the raw data by accident.
Troubleshooting
Formula returns #N/A or "Not found". Compare the key on both sides character by character. Use TRIM and CLEAN in a helper column, and check for text versus number formatting. Also confirm you are looking in the right direction; lookups need the key on the left for VLOOKUP.
Excel says the relationship cannot be created. One of the tables has duplicate values in the column you are joining on, or has blanks. The "one" side of a one-to-many relationship must be unique.
A formula shows as text instead of calculating. The cell is probably formatted as Text. Change the format to General and re-enter the formula by pressing F2 then Enter. Check that the workbook is set to Automatic calculation under Formulas > Calculation Options.
Values update from the wrong row after sorting. Sort ranges shift relative references. Sorting an Excel Table keeps structured references aligned, which is another reason to use tables.
The PivotTable does not show fields from the second table. That table was not added to the Data Model, or the relationship was never defined. Re-check step 7 and step 8.
Still stuck. Copy both key columns into a single blank column and use COUNTIF against the other to find which keys do not exist on the other side. That isolates data problems from formula problems quickly. Save a copy of the workbook before making large changes, since deleting model relationships and reloading queries can lose setup work.
Frequently Asked Questions
Can Excel link two worksheets so one updates when the other changes?
Yes. A direct reference such as =Sheet2!B2 or a lookup formula recalculates automatically when the source cell changes. The link is live within the workbook, not a permanent connection to an external file.
What is the difference between a relationship and a normal formula?
A formula pulls specific values from another sheet. A Data Model relationship defines a join between two tables so a PivotTable can use fields from both without merging them. Relationships scale better with large, evolving data.
Do I need Power Pivot for relationships?
No. Recent desktop versions of Excel expose the relationship tools under Data > Manage Data Model without the separate Power Pivot add-in. Older versions put the same tools in the Power Pivot tab.
Why does my lookup work on some rows but not others?
Almost always inconsistent keys. Look for trailing spaces, text-versus-number mismatches, or duplicated entries that make the lookup return the first match only.
Will relationships work in Excel for the web?
The basic formulas work everywhere, but the full Data Model relationship editor is limited to the desktop app. Build the model on desktop and then view the results.
Does linking sheets slow the workbook down?
Thousands of live lookups against large ranges can. Tables and the Data Model are generally more efficient, and you can switch to Manual calculation while editing heavy workbooks.