In Excel: select the last 20 rows of data in a column

T

Tad Blanchard

How do I create a formula that will select the last 20 entries in a column of
a database?
 
B

Bob Phillips

This is the sort of thing

OFFSET($A$1,COUNTA(A:A)-20,0,20,1)

which can be used like so

=SUM(OFFSET($A$1,COUNTA(A:A)-20,0,20,1))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
K

Krishnakumar

You can avoid the Volatile OFFSET function.

Try,

=SUM(INDEX(A:A,COUNTA(A:A)-19):INDEX(A:A,COUNTA(A:A)))


HTH
 
Top