excelexcel-formulaconditional-statementssumcell

Calculating reset in Excel Sheet


Please put the following formula in C2 cell and then copy to below cells.

The following formula might be good at beginning.

=IF(SUM($B$2:B2)>50,"total value equals or less than 50","")

Solution

  • I applied a helper column D with formula

    in cell D2: =IF(C2="less than",SUM(B$1:B2)-SUM(D$1:D1),0)

    in cell C2: =IF(SUM(B$1:B3)>50+SUM(D$1:D1),"less than","")

    Result

    enter image description here