Say A1 contains the start row and A2 contains the end row. You can use a formula like this:
Make sure the cell with the formula is outside the indexed range, or you will get a circular reference. Also make sure that neither A1 nor A2 are greater than the number of indexed rows, or you will get a #REF! error.