The method explained below will work in previous versions.
The core of this formula is a string that represents rows.
Because INDIRECT works with a reference constructed with text, it isn’t affected by changes on the worksheet.
However, you could apply math operations to the array created by ROW.
INDIRECT is useful when you want to assemble a text value that can be used as a valid reference.
ROW Function
The Excel ROW function returns the row number for a reference.
For example, ROW(C5) returns 5, since C5 is the fifth row in the spreadsheet.
When no reference is provided, ROW returns the row number of the cell which contains the formula.