I have a table and Column A can have a value of either 1 or 0. Column B has a formula that generates a running total of the number of 1's in Col A. If on the current row the value of Col A is 1, then I take the total from the row above in Col B and add 1. If Col A equals 0, I just take the value of Col B from the row above. So for example' the formula in B9 is:
=IF(A9=1,B8+1,B8)
My problem is, if a user inserts a row and copies down the formula from above, but only down to the new blank row, then the formulas below get messed up. Because I want the users to be allowed do this type of insert and copy I am trying to get a bulletproof way of doing this.
Now in reality, I have several columns that require this treatment, and many thousands of rows. I thought of using
=COUNTIF($A$1:A9,1)
But this significantly slows down the performance of the sheet to an unacceptable response time for the user.
Any suggestions.
Thanks,
Mikeg
=IF(A9=1,B8+1,B8)
My problem is, if a user inserts a row and copies down the formula from above, but only down to the new blank row, then the formulas below get messed up. Because I want the users to be allowed do this type of insert and copy I am trying to get a bulletproof way of doing this.
Now in reality, I have several columns that require this treatment, and many thousands of rows. I thought of using
=COUNTIF($A$1:A9,1)
But this significantly slows down the performance of the sheet to an unacceptable response time for the user.
Any suggestions.
Thanks,
Mikeg