I have a helper column with the following code
=IF(A1<>A2,1-SUM(B1),SUM(B1))
The table looks like
When I delete a row, say row 21 in this example, I end up with a ref issue in cell B21 -
=IF(#REF!<>A21,1-SUM(#REF!),SUM(#REF!))
Is there any way to resolve this, perhaps with a way to sequence the formula in cell B2 such that it automatically runs the calculation and corrects based on rows being removed?
