Excel: Concatenating a Link Formula Using INDIRECT()Last reviewed: April 26, 1995Article ID: Q57393 |
The information in this article applies to:
The INDIRECT() function can be used to link to open files in Microsoft Excel. The advantage to using this function is that you can include both the filename and the cell that contains the information in a formula. For example, if the following are true
=INDIRECT("'"&A1&"'!<ref>")where <ref> is the cell reference of the desired data. The formula to link to an open worksheet having the filename in cell A1 and the cell to link to in cell A2 is as follows:
=INDIRECT("'"&A1&"'!"&A2&"")NOTE: The above formulas will only return a value if the worksheet being linked to is open; otherwise, the formulas will return a #REF! error value.
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |