Welcome toExcel.Tips.Net
Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Learn Access Now
Free Printable Forms
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site
Adding a Little Animation to Your Life
Converting a Range of URLs to Hyperlinks
Making the Formula Bar Persistent
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 MayData worksheet of the 2008Budget.xls workbook:
=+[2008Budget.xls]MayData!$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 will calculate 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 versions: 97 2000 2002 2003 2007
More Power! For some people, the prospect of creating macros can be scary. Those who conquer their fears, however, find they become much more confident and productive once they learn how to make Excel do exactly what they want. ExcelTips: The Macros is an invaluable source for learning Excel macros. You are introduced to the topic in bite-sized chunks, pulled from past issues of ExcelTips. Learn at your own pace, exactly the way you want.