Each cell in column A should report SUM of every cell of column B, except rows above those cells.
Sample:
| A | B |
---------
| 4 | 1 |
| 3 | 0 |
| 3 | 1 |
| 2 | 1 |
| 1 | 1 |
| 0 | 0 |
How can I achieve this using Google Spreadsheets?
google sheets
Each cell in column A should report SUM of every cell of column B, except rows above those cells.
Sample:
| A | B |
---------
| 4 | 1 |
| 3 | 0 |
| 3 | 1 |
| 2 | 1 |
| 1 | 1 |
| 0 | 0 |
How can I achieve this using Google Spreadsheets?
Best Answer
This is almost the same as a cummulative sum, but reversed.
Formula
or
Explained
If you add the first formula in
C2
, then you're able to copy that cell (drag) toC7
. TheARRAYFORMULA
will present the result at once.Example
I've created an example file for you: Inverse Cummulative Sum
Reference
Cummulative Sum