My input Data looks like this:
| Starting Date | End Date | Beginning Balance | Additions | Disposals | Closing Balance |
| 2020-01-13 | | 0 | 650000 | 0 | 0 |
| 2020-02-01 | 2020-02-28 | 0 | 0 | 0 | 0 |
| 2020-03-01 | 2020-03-31 | 0 | 0 | 0 | 0 |
| 2020-04-01 | 2020-04-30 | 0 | 0 | 0 | 0 |
| 2020-05-17 | | 0 | 0 | 200000 | 0 |
| 2020-05-17 | 2020-05-31 | 0 | 10000 | 0 | 0 |
| 2020-06-01 | 2020-06-30 | 0 | 0 | 0 | 0 |
As you can see I have the rows I need and the transactions that happened but all the calculated fields are 0. I need to first perform a calculation horizontally (Beginning Balance + Additions - Disposals = Closing Balance) and then carry that Closing Balance to the next row as beginning balance, before performing the same calculation again.
So my target output would look like this:
| Starting Date | End Date | Beginning Balance | Additions | Disposals | Closing Balance |
| 2020-01-13 | | 0 | 650000 | 0 | 650000 |
| 2020-02-01 | 2020-02-28 | 650000 | 0 | 0 | 650000 |
| 2020-03-01 | 2020-03-31 | 650000 | 0 | 0 | 650000 |
| 2020-04-01 | 2020-04-30 | 650000 | 0 | 0 | 650000 |
| 2020-05-17 | | 650000 | 0 | 200000 | 450000 |
| 2020-05-17 | 2020-05-31 | 450000 | 10000 | 0 | 460000 |
| 2020-06-01 | 2020-06-30 | 460000 | 0 | 0 | 460000 |
Any ideas? I tried with just formulas and multi row formulas but it wouldn't work and I thought a macro may be needed which I'm not very familiar with.