Solved
Vectors and Cumulative Summation
- February 18, 2011
- 6 replies
- 6969 views
Hello everyone. I need help programming a loop that can calculate a cumulative running sum given a vector of values. For example, if cell(1,1) = 10 and cell(1,2) = 2, then the cumulative sum would be 12 and if cell(1,3)=4, then the cumulative sum would be cell(1,1)+cell(1,2)+cell(1,3)=16. I need to have a matrix that shows the incremental values in Col(1) and the cumulative sums in Col(2). I've attached a worksheet that resembles the type of data and loop format that I need to build.
Thanks!!


