I have a few inputs in A1:B3:
months 20
Price per month 30
cost 180
then in:
A5 =sequence(1,b1,1,1)
A6 =sequence(1,b1,B2,0)
A7 =If(A5#=1,b3,0)
This gives me a useful and dynamic table. However, I would add a rolling P&L from A8 for the length of the number of months? Below is the result that I am trying to achieve (the bold line is A8). Any help would be very helpful
months 20
Price per month 30
cost 180
then in:
A5 =sequence(1,b1,1,1)
A6 =sequence(1,b1,B2,0)
A7 =If(A5#=1,b3,0)
This gives me a useful and dynamic table. However, I would add a rolling P&L from A8 for the length of the number of months? Below is the result that I am trying to achieve (the bold line is A8). Any help would be very helpful
Price per month | 30 | 30 | 30 | 30 | 30 | 30 | 30 | 30 | 30 |
Cost | 180 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
P&L (The line I am struggling with) | -150 | -120 | -90 | -60 | -30 | 0 | 30 | 60 | 90 |