Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How do I sum the first X cells in a list where X is defined in another cell?
Specifically, I have a list of numbers in cells B4:B30. In cell A1, I have another number, which I want to be able to change around. So that if A1=4, then I sum B4:B8, but if A1=5, then I sum B4:B9 and so on. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way
=SUM(B4:INDEX(B4:B30,A1)) -- Regards, Peo Sjoblom "RobinC" wrote in message ... How do I sum the first X cells in a list where X is defined in another cell? Specifically, I have a list of numbers in cells B4:B30. In cell A1, I have another number, which I want to be able to change around. So that if A1=4, then I sum B4:B8, but if A1=5, then I sum B4:B9 and so on. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUM(OFFSET(B4,0,0,A1,1))
Regards, Stefi €˛RobinC€¯ ezt Ć*rta: How do I sum the first X cells in a list where X is defined in another cell? Specifically, I have a list of numbers in cells B4:B30. In cell A1, I have another number, which I want to be able to change around. So that if A1=4, then I sum B4:B8, but if A1=5, then I sum B4:B9 and so on. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum a different number of items | Excel Worksheet Functions | |||
number of items fit into item | Excel Worksheet Functions | |||
reference with variable row number ? | Excel Worksheet Functions | |||
Number of items in a colum | Excel Worksheet Functions | |||
Number of items per day in chart. | Charts and Charting in Excel |