You can use Excel's INDIRECT worksheet function to ensure that a range reference is not modified
even as new rows are inserted into the range.
For example, you have the following formula:
=SUM(A1:A10)
Let's say one of the cells in the range, A5, contains a data marker. If 10 new rows
are inserted into the range when the data marker is populated, the formula will
be updated to :
=SUM(A1:A19)
This behavior occurs even if you use absolute referencing; i.e., the formula =SUM($A$1:$A$10)
will be converted to =SUM($A$1:$A$19).
The INDIRECT function converts a text string into a range reference. Because the
range reference is created from a text string, it is not modified by Excel when
rows are inserted. For the example above, you can preserve the range reference as
A1:A10 with the following formula:
=SUM(INDIRECT("A1:A10"))
Related Links
|