dreid1011
Well-known Member
- Joined
- Jun 4, 2015
- Messages
- 3,633
- Office Version
- 365
- Platform
- Windows
Is it possible to reference the previous row in a dynamic array formula? Such as below, in column C, I can add this portion: "-MAX(0,C1)" in C2 to effectively reference the previous value in the next row's calculation.
Book1 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | |||||||
2 | 10000 | -40000 | -40000 | ||||
3 | 11000 | -29000 | -29000 | ||||
4 | 26000 | -3000 | -3000 | ||||
5 | 7000 | 4000 | 4000 | ||||
6 | 29000 | 29000 | 33000 | ||||
7 | |||||||
8 | 50000 | ||||||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:E6 | E2 | =BYROW(SCAN(0,B2:B6,LAMBDA(a,b,b+a)),LAMBDA(r,r-$B$8)) |
C2:C6 | C2 | =SUM($B$2:B2)-$B$8-MAX(0,C1) |
Dynamic array formulas. |