Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I need to be able to change the length of the string of numbers in a column
being added using the Sum formula such as: =Sum($A$1:A10), where A10 is a variable adjusted by a reference to the number of rows to add in an different cell (C1). For instance, if C1 is the reference cell and C1 = 20, the the fomula should automatically change to =Sum($A$1:A20). How can this be accomplished? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SUM(INDIRECT("A1:A"&C1))
-- Gary''s Student - gsnu200909 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SUM(OFFSET(A1,0,0,C1,1))
Entered in B1 Gord Dibben MS Excel MVP On Thu, 3 Dec 2009 11:45:01 -0800, Migo1 wrote: I need to be able to change the length of the string of numbers in a column being added using the Sum formula such as: =Sum($A$1:A10), where A10 is a variable adjusted by a reference to the number of rows to add in an different cell (C1). For instance, if C1 is the reference cell and C1 = 20, the the fomula should automatically change to =Sum($A$1:A20). How can this be accomplished? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Another one...
=SUM(A1:INDEX(A:A,C1)) If C1 is an empty cell the entire range will be calculated. -- Biff Microsoft Excel MVP "Migo1" wrote in message ... I need to be able to change the length of the string of numbers in a column being added using the Sum formula such as: =Sum($A$1:A10), where A10 is a variable adjusted by a reference to the number of rows to add in an different cell (C1). For instance, if C1 is the reference cell and C1 = 20, the the fomula should automatically change to =Sum($A$1:A20). How can this be accomplished? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum over a variable number of cells | Excel Discussion (Misc queries) | |||
Applying formula to variable number of rows | Excel Worksheet Functions | |||
Macro - Formula RC[?] with ? being a variable number | Excel Discussion (Misc queries) | |||
How to sum a variable number of items | Excel Worksheet Functions | |||
Variable Determines Number of Cell in Formula Range | Excel Worksheet Functions |