The information in this article applies to:
In Microsoft Excel, a range referenced in a SUM() function (or any function) does not automatically expand to include newly added rows or columns. This situation is true regardless of whether the formula references a range, as in the formula =SUM(A1:E1), or a defined name, as in the formula =SUM(NamedRange). If you want to reference a range so that it is automatically updated when you add new rows or columns, you can use the INDEX() and SUM() functions in a formula similar to the following :
In this formula, <first_cell> is the address of the first cell of the range to be summed and <column> is the letter identifying the column of the summed range. Because the INDEX() function always returns the address of the cell immediately preceding the cell containing the SUM() formula, there is no need to edit the formula when you insert new rows. If your data is arranged horizontally instead of vertically, use the following formula:
Note that in the above formula the only difference from the previous one is that column:column is changed to row:row, and ROW() is changed to COLUMN(). The above formulas are useful in situations where want to keep a running total of information. Example
Explanation of Formula in B6
REFERENCES
In Microsoft Excel version 5.0, the equivalent of the "Function Reference"
is contained in the Online Help. To access this information, press the F1
key (or select Contents from the Help menu), then choose Reference
Information. You should now see Late Breaking Information about Excel and
General Reference. Under General Reference, select Worksheet Functions and
scroll through the Alphabetical List of Worksheet Functions.
Additional query words: 2.2 2.20 2.21 3.0 3.00 4.00 4.00a
Keywords : |
Last Reviewed: March 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |