Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sum of an array
Is there anyway to sum a range of values given a specific number of
cells you choose to sum. For example you have a range from A1:F1, G1=number of cells you want to sum from left to right, and H1 is the total. So if G1=3, then H1=sum(A1:C1) or 16. If G1=5, then H1=sum(A1:E1) or 20. A B C D E F G H 1 3 5 8 3 1 7 Var Sum Thanks in advance. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sum of an array
put this in H1
=SUM(INDIRECT("A1:"&LOOKUP(G1,{1,2,3,4,5,6},{"A"," B","C","D","E","F"})&"1")) " wrote: Is there anyway to sum a range of values given a specific number of cells you choose to sum. For example you have a range from A1:F1, G1=number of cells you want to sum from left to right, and H1 is the total. So if G1=3, then H1=sum(A1:C1) or 16. If G1=5, then H1=sum(A1:E1) or 20. A B C D E F G H 1 3 5 8 3 1 7 Var Sum Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Prevent cell/array references from changing when altering/moving thecell/array | Excel Discussion (Misc queries) | |||
Populate an array that is a subset of a larger array? | Excel Worksheet Functions | |||
Array: Counting multiple values within array | Excel Worksheet Functions | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
combining cells and array from different sheets into an array to pass to IRR() | Excel Discussion (Misc queries) |