Stop your formulas from breaking by switching from grid-based coordinates (ROW) to stable table measurements (ROWS).
Whether you’re working on a simple fix or a big project, the smaller version of a tool is almost always the better one.