I am trying to SUM all rows based on the condition that a row\'s value is greater than 0. However, the formula is only calculating the first row and ignoring the rest of the ran
try:
=ARRAYFORMULA(IF(A:A="",,SUMIF(ROW(A:A), "<="&ROW(A:A), A:A)))
if you prefer dragging do:
=SUMIF(INDIRECT("A1:A"&ROW()), ">0")
=ARRAYFORMULA(IF(D2:D="",, SUMIF(ROW(D2:D), "<="&ROW(D2:D), D2:D)- SUMIF(ROW(E2:E), "<="&ROW(E2:E), E2:E)))