Copy last 10 values to a table on another worksheet

djdave007

New Member
Joined
Sep 17, 2008
Messages
13
Hi,
I am wondering if anyone can help with a copy and paste issue.
I have a raw data list on sheet A, with 100+ values in Column A.

I would like if possible, for the last 10 values be copied to Sheet B and be entered into row cells A2, B2, C2...J2

Everytime the another value is entered in Sheet A, in Column A i.e. 101st value, the values in Sheet B - A2........J2 change to show the NEW last 10 values.

Is this possible?

thanks for any help
dave
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Assuming that Column A, starting in Row 2, in Sheet1, contains the source data, try the following...

A2, copied across:

To return first to last...

=INDEX(Sheet1!$A$2:$A$65536,MATCH(9.99999999999999E+307,Sheet1!$A$2:$A$65536)+COLUMNS($C2:C2)-10)

To return last to first...

=INDEX(Sheet1!$A$2:$A$65536,MATCH(9.99999999999999E+307,Sheet1!$A$2:$A$65536)-COLUMNS($A2:A2)+1)

Note that if the data contains text values, instead of numerical values, replace...

9.99999999999999E+307

with

REPT("z",255)

Hope this helps!
 
Last edited:
Upvote 0
You're very welcome! By the way, since the formula is first being entered in A2 and then copied across, this part of the first formula...

COLUMNS($C2:C2)

...should have been...

COLUMNS($A2:A2)

Note, however, both will return the same result.
 
Upvote 0

Forum statistics

Threads
1,222,562
Messages
6,166,804
Members
452,073
Latest member
akinch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top