Linking data in Excel for real-time updates allows you to dynamically reference and display data from one worksheet, workbook, or source in another. When the source data changes, the linked data updates automatically.
Types of Linking Data
- Within the Same Workbook (Sheet to Sheet)
- Use a simple cell reference.
- Example: In
Sheet2
, type=Sheet1!A1
to link the value of cellA1
fromSheet1
.
- Between Workbooks
- Open both workbooks.
- In the destination workbook, type
=
and navigate to the source workbook to select the desired cell. Press Enter. - Example of resulting formula:
=[SourceWorkbook.xlsx]Sheet1!A1
- When the source workbook is closed, the formula changes to include the full file path:
='C:\Users\Documents\[SourceWorkbook.xlsx]Sheet1'!A1
- Linking External Data Sources
- Use Power Query or Data Connections to link with external databases, web data, or other sources.
Steps to Link Data
- Within the Same Workbook
- Go to the target cell, type
=
, and select the source cell. Press Enter.
- Go to the target cell, type
- Between Workbooks
- Open both workbooks.
- In the destination workbook, navigate to the cell where you want the linked data.
- Type
=
, switch to the source workbook, select the cell, and press Enter.
- Using Named Ranges for Links
- Name a range in the source sheet (e.g.,
SalesData
). - In the target workbook, use
=SalesData
to link directly to the range.
- Name a range in the source sheet (e.g.,
Example Use Case
Scenario: You have monthly sales data in a file named January.xlsx
and want to display its total in a summary file.
Steps:
- Open
January.xlsx
and the summary workbook. - In the summary file, select a cell and type:
=[January.xlsx]Sheet1!B10
- Press Enter. Now, any changes in
B10
ofJanuary.xlsx
reflect in the summary workbook.
Best Practices
- Ensure Workbooks Stay in the Same Location: If files are moved, update the links.
- Use Named Ranges: They make formulas easier to read and manage.
- Check for Broken Links: Use Data > Edit Links to fix or update broken links.