I'm new to VBA and have been able to do what I needed until now. I wasn't sure how to word my question to easily explain my problem.
I've attached a spreadsheet showing what I need to accomplish, without using VBA. Columns A and B will contain given numbers. Column a will range from 0 to X in increments of 1, column B will start at 0 and contain increasing values from there. Column C will perform a calculation on the values in A & B and with each subsequent row will need to perform a summation of previous rows. I'm assuming this needs some sort of loop.
The equation would look something like this and the summation would continue until after a cell with value 0 was encountered.
At any row = n
Cn = (Bn - B(n-1))*(An - A(n-1)) + (B(n-1) - B(n-2))*(An - A(n-2)) + (B(n-2) - B(n-3))*(An - A(n-3)) . . . . .etc
Hopefully I've explained it well enough, let me know if you need any clarification. Thanks in advance for any help you can provide!
Bookmarks