Given this layout:
+--------+ +--------+
| A | B | | A | B |
+----+---+ +----+---+
| 1 | | | 1 | 6 |
| 2 | | | 2 | |
| 3 | | => | 3 | |
| | | | | |
| 4 | | | 4 | 9 |
| 5 | | | 5 | |
| | | | | |
+----+---+ +----+---+
I want to have the sum of A1:A3 in B1 and the sum of A5:A6 in B5. This is trivial. what i really want is a formula which calculates the range A1:next_free_cell_below_in_a and A5:next_free_cell_below_in_a.
Bonus: Can I use some other "patterns" / "criterias" as well?
How to achieve this?