Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Easily Changing Links.

Easily Changing Links

by Allen Wyatt
(last updated January 6, 2015)

4

Excel allows you to link information from one worksheet to another, or even from one workbook to another. Many people do this very thing when they use one worksheet as a "summary" overview of information contained in other worksheets.

If you organize your data in this manner, you may be wondering about the best way to change links within your worksheet. When you link information, Excel keeps track within the link of the source of the link. For instance, the following link refers to cell C7 in the OctoberData worksheet of the 2011Budget.xls workbook:

=+[2011Budget.xls]OctoberData!$C$7

If you have quite a few of these links in a worksheet, it can be bothersome to update each link when you change the source workbook or worksheet used by the links. You could, of course, use Excel's find and replace feature to make the desired changes, but there is an easier way: Use the INDIRECT and ADDRESS functions.

For instance, let's assume that you have cells containing a workbook name (J1), a worksheet name (J2), a numeric row number (J3), and a column number (J4). In this instance, you could use the following formula to specify a link:

=INDIRECT(ADDRESS(J3,J4,1,TRUE,"["&J1&"]"&J2))

The result is that Excel calculates an indirect address based on the contents of the cells. If you want to change the place from which Excel pulls information, all you need to do is change the contents of cells J1 through J4 so they represent the desired source.

You should note that you will need to have the source workbooks open in order to use this approach. If they are not open, Excel won't be able to update the information as desired.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (1968) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Easily Changing Links.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Controlling Entry Order on Unprotected Cells

When you protect a worksheet, one of the benefits is that you can limit which cells can be used for data entry. How a user ...

Discover More

Normal Words Flagged by Spell Check

What do you do when Word's spelling check marks some common, everyday words as wrong? Here are some ideas of places you can ...

Discover More

Changing from Absolute to Relative Hyperlinks

It is easy to amass a large number of hyperlinks in a document. You may want to process these hyperlinks in some way, perhaps ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (menu)

Uncovering and Removing Links

Excel allows you to reference data in other workbooks by establishing links to that data. If you later want to get rid of ...

Discover More

Simple Relative References in External Links

Linked data can be essential in pulling information from one workbook to another. One downside of links, however, is that ...

Discover More

Updating Links

When you establish links between data on a target worksheet and data on a source worksheet, those links are typically updated ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 - 2?

2016-03-03 05:34:23

Dipti

Hello there,

I am looking to connect one excel workbook to another, I want the data to be auto populated into second work when there is any data entered. Can someone please help me with this.
Many thanks


2011-11-10 15:20:10

gerdami

"=+[2008Budget.xls]MayData!$C$7"

If 2008Budget.xls is located on a shared drive and if someone inserts a row or a column before C7, expect some data errors in your calling spreadsheet !


2011-11-10 11:21:56

awyatt

Gary,

As long as J1:J4 are set properly (as indicated in the tip), the formula should work just fine. Also, make sure that the workbook name entered into J1 includes the ".xls" at the end.


2011-11-10 11:07:01

Gary Lundblad

This is exactly the kind of formula I have been looking for, but when I try to use it I keep getting a "#VALUE" error. Can you lay out an example with a little more detail?

Thank you,

Gary Lundblad


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.