B
Box666
I have a formula that lookup the last 13 rows of a spreadsheet.
=OFFSET($A$2;COUNTA(A:A)-ROW(A1)-1;0)
to
=OFFSET($A$2;COUNTA(A:A)-ROW(A13)-1;0)
This works great, so long as there are at least 13 moths of data, if
not then it shows the column header"Month" or "#REF!".
I thought I could use a "IF" statement, so if the result was "Month"
or "#REF!" then it would produce a " " but I cannot seem to get "IF"
to work with the above formula.
Can anybody help with this, or is there a better way to amend the
above formula if there are not 13 months of data.
With thanks
Bob
=OFFSET($A$2;COUNTA(A:A)-ROW(A1)-1;0)
to
=OFFSET($A$2;COUNTA(A:A)-ROW(A13)-1;0)
This works great, so long as there are at least 13 moths of data, if
not then it shows the column header"Month" or "#REF!".
I thought I could use a "IF" statement, so if the result was "Month"
or "#REF!" then it would produce a " " but I cannot seem to get "IF"
to work with the above formula.
Can anybody help with this, or is there a better way to amend the
above formula if there are not 13 months of data.
With thanks
Bob