Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Link Formula Returns #REF! Error Value


View products that this article applies to.

Symptoms

In Microsoft Excel, when you move (cut and paste) or delete cells on a worksheet, formulas may return the #REF! error value.

↑ Back to the top


Cause

This problem occurs when you delete or move a cell that is referenced in a link formula.

↑ Back to the top


Workaround

To avoid receiving a #REF! error value when you drag or paste cells on top of referenced cells, or delete referenced cells, use the INDIRECT() function or the OFFSET() function to reference the cell indirectly. For example, to reference cell A1 in Sheet1, use one of the following formulas in cell A2 of Sheet1:
=INDIRECT("Worksheet1!A1")

-or-

=OFFSET(worksheet1.xls!A2,-1,0)
NOTE: Neither of these two functions, if used to reference cell A1, returns the #REF! error; however, neither one updates the cell reference within the formula. So, in this example, if you cut cell A1 and paste it into another worksheet, cell A2 still references cell A1 and displays a value of 0.

↑ Back to the top


More information

This behavior occurs if you move cells on top of the cells that are referenced, either by dragging the new cells over the referenced cells or by using the Cut and Paste commands. This behavior also occurs if you simply delete the referenced cell.

↑ Back to the top


Keywords: KB182191, kbprb

↑ Back to the top

Article Info
Article ID : 182191
Revision : 4
Created on : 10/6/2003
Published on : 10/6/2003
Exists online : False
Views : 414