ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   keeping a sum array static (https://www.excelbanter.com/excel-worksheet-functions/70342-keeping-sum-array-static.html)

cmattmills

keeping a sum array static
 
I would like to create a SUM function that goes from A1:A10 (for example) and
does not expand or contract as I add or remove cells within the array.
Currently if I insert a cell, the function will change to A1:A11 which I do
not want. Ideas?

Bob Phillips

keeping a sum array static
 
=SUM(INDIRECT("A1:A10"))

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"cmattmills" wrote in message
...
I would like to create a SUM function that goes from A1:A10 (for example)

and
does not expand or contract as I add or remove cells within the array.
Currently if I insert a cell, the function will change to A1:A11 which I

do
not want. Ideas?




Ron Coderre

keeping a sum array static
 
Try something like this:

=SUM(INDIRECT("a1:a10"))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"cmattmills" wrote:

I would like to create a SUM function that goes from A1:A10 (for example) and
does not expand or contract as I add or remove cells within the array.
Currently if I insert a cell, the function will change to A1:A11 which I do
not want. Ideas?


Bernie Deitrick

keeping a sum array static
 
=SUM(INDIRECT("A1:A10"))

HTH,
Bernie
MS Excel MVP


"cmattmills" wrote in message
...
I would like to create a SUM function that goes from A1:A10 (for example) and
does not expand or contract as I add or remove cells within the array.
Currently if I insert a cell, the function will change to A1:A11 which I do
not want. Ideas?




cmattmills

keeping a sum array static
 
Thank you all for responding so quickly! It works, and now I can get on with
MY work!



"Bernie Deitrick" wrote:

=SUM(INDIRECT("A1:A10"))

HTH,
Bernie
MS Excel MVP


"cmattmills" wrote in message
...
I would like to create a SUM function that goes from A1:A10 (for example) and
does not expand or contract as I add or remove cells within the array.
Currently if I insert a cell, the function will change to A1:A11 which I do
not want. Ideas?






All times are GMT +1. The time now is 01:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com