I have an equation with 4 variables. I would like to be able to input any amount of rows of data into the spreadsheet. There will be 4 columns and multiple rows. Each is calculated separatly and then the sum will be calculated at the end. This is integration...
Example:
Row1: a, b, c, d Calculation1 = (1/2)*(b-a)*(d+c)
Row2: e, f, g, h Calculation2 = (1/2)*(f-e)*(h+g)
Row3: i, j, k, l Calculation3 = (1/2)*(j-i)*(l+k)
Row
: ...,...,... Calculation
= (1/2)*etc...
Sum=Calculation1+Calculation2+Calculation3+...+Calculation
Commas indicate separation of columns.
It would also need to stop when it comes across the first empty row.
Do I need to use an array? If so, please demonstrate. I can't get my code to step through each row and store the calculation to sum at the end.
Thank you for you help! It is much appreciated!
GoodB
Example:
Row1: a, b, c, d Calculation1 = (1/2)*(b-a)*(d+c)
Row2: e, f, g, h Calculation2 = (1/2)*(f-e)*(h+g)
Row3: i, j, k, l Calculation3 = (1/2)*(j-i)*(l+k)
Row
Sum=Calculation1+Calculation2+Calculation3+...+Calculation
Commas indicate separation of columns.
It would also need to stop when it comes across the first empty row.
Do I need to use an array? If so, please demonstrate. I can't get my code to step through each row and store the calculation to sum at the end.
Thank you for you help! It is much appreciated!
GoodB