Please have a look at my spreadsheet: https://docs.google.com/spreadsheets/d/1K5Btg5fFS590G7vZsFiepY-2VTPhzJIlkKK_o-9Ag7E/edit?usp=sharing
How do I get:
Start weight
(i.e. "100,0")Daily weightloss
(i.e. "99,7701")Daily weightloss
(i.e. "99,5402)Daily weightloss
(i.e. "99,3103")The challenge is obviously to do this dynamically since all the user-submitted data, and consequently, all the calculated data might change.
I think this can/should be solved with ArrayFormula somehow but I don't know how.
=ARRAYFORMULA(IF(A2:A;
MMULT(TRANSPOSE((ROW(INDIRECT("B2:B"&COUNTA(A1:A)))<=
TRANSPOSE( ROW(INDIRECT("B2:B"&COUNTA(A1:A)))))*
{B2; TRANSPOSE(SPLIT(REPT(J5*-1&"♦"; COUNTA(A3:A)); "♦"))});
SIGN({B2; TRANSPOSE(SPLIT(REPT(J5*-1&"♦"; COUNTA(A3:A)); "♦"))})^2); IFERROR(1/0)))