Selecting a range of definite size (e.g. A1:A2
) works just fine, but selecting a range to the last row does not. If relevant, I am using Office 365.
2 Answers
You can do open references like A:A or 1:1 but cannot mix and match the fixed and open references. To reference the last non-blank cell:
=INDEX(A:A,COUNTA(A:A))
Or the whole non-blank range:
=A1:INDEX(A:A,COUNTA(A:A))
A1:A
. One must state the ending row or full column reference.