The formula =SUM(A2:A(ROW-1)) in the cell B5 for example is not correct, what would be the correct syntax?
I have two columns, A and B, plain positive numbers without decimals. In column A, starting with A2, I have these numbers, let's say A2 is 10, A3 is 20, A4 is 5.
In the cells of column B, I want to have the above formula, in order to sum the values of column A up: B3 would be the "sum" of A2 (10), B4 would be the sum of A2 and A3 (30), B5 would be the sum of A2 and A3 and A4 (35), and so on.
ROW being the current row number, ROW-1 would then be the row number of the previous row, and I always need the sum of all the values in column A, from A2 up to the current row minus 1, hence my above formula but it's an error, and the MS "help" which then opens up is no help for this, couldn't either find anything on the web, with "Excel SUM ROW" and the like.
I tried various other syntaxes, they were all bad, e.g. with [] instead of () around ROW-1, and others, like =SUM(A2:A(ROW()-1)).
What's the correct syntax, please?
B2
=SUM(A$1:A1)
and copy down. This does not work for cellB1
. - VBasic2008