You could try using a dynamic named range to define your data, and then refer to that in the subtotal formula.