That can be done, but it's bit complicated and inefficient to sum every x rows...
Is there anything else that might be used logically to choose which cells to sum?
A common text string in an adjacent column?
So we can use SUMIF like
=SUMIF(H:H,"SomeString",I:I)
That would sum cells in column I if the corresponding cell in column H = "SomeString"