Excel: Cell References in Linked External Worksheets Are Wrong

Last reviewed: November 2, 1994
Article ID: Q24184

SUMMARY

When linking to an external worksheet, if cells are inserted or deleted on the supporting worksheet, the dependent worksheet will then refer to the "wrong" cells.

To solve this problem, use defined names instead of cell references.

Example

Worksheet1 is linked to Worksheet2. Cell C5 on Worksheet1 contains the following formula:

   =Worksheet2!$G$3

If row 1 on Worksheet2 is deleted, the data referenced in the formula is now in cell G2; however, the formula on Worksheet1 does not update.

However, if we define the name "Data" to be equal to $G$3 and use the formula

   =Worksheet2!Data

in cell C5 on Worksheet1, then when row 1 is deleted, the name "Data" will automatically be redefined to refer to $G$2 and Worksheet1 will still refer to the correct information.


KBCategory: kbother
KBSubcategory:

Additional reference words: noupd


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.