how do I copy the last 20 entries in an expanding list
Assuming your data in column A
If your data are 'text' value then use this:
=INDEX(A:A,MATCH("zzzzz",A:A)+ROWS($1:1)-20)
copy down to next 19 rows
If your data are 'numeric' value then use this:
=INDEX(A:A,MATCH(10^10,A:A)+ROWS($1:1)-20)
copy down to next 19 rows
"DJA" wrote:
Within a macro, I need to copy the last 20 entries of a list to another
location.
as the list grows, I still only need the last 20 entries to copy to the
location.
in lotus I would write "end down" "up 20" then copy & move.
I can't find a corresponding formula in excel.
when I try using end down in the macro and copy... it seems to always use
the original space rather than the new space as new entries are listed.
|