K
Khaki
Hi
I would like to know how to sum a range of cells and put the resul
into an array
Say my range is from B2 to G5
and I have an array of size 6,
myArray(6) as double
is there a function to sum a range, and return the results int
myArray?
Another part of the question is is there a function to do a cumulativ
sum of a range or do I have to cycle thru each cell?
Basically is there a better way to write this (code below) that i
optimized for speed?
dim myArray(6) as double
for i = 0 to 5 do
myArray(i) = myArray(i) + cell(2,i + 1)
next
Thanks
I would like to know how to sum a range of cells and put the resul
into an array
Say my range is from B2 to G5
and I have an array of size 6,
myArray(6) as double
is there a function to sum a range, and return the results int
myArray?
Another part of the question is is there a function to do a cumulativ
sum of a range or do I have to cycle thru each cell?
Basically is there a better way to write this (code below) that i
optimized for speed?
dim myArray(6) as double
for i = 0 to 5 do
myArray(i) = myArray(i) + cell(2,i + 1)
next
Thanks