last 10 numbers in a row

det1nrs

New Member
Joined
Jul 3, 2003
Messages
19
I have rows of numbers that gets a new number added to the right most column every week. I need a formula that will return the LAST 10 numbers of those rows automatically to another worksheet in the workbook. The kicker is that sometimes there isn't a number added for some of the rows. In that case the cell is left blank. I'm using Excel 2007. Please help!!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
use autofilter
click the filter arrow of the column
click top 10
in the wizard choose
bottom - 10

copy filtered data somewhere else and remove filter form the original column
 
Upvote 0
use autofilter
click the filter arrow of the column
click top 10
in the wizard choose
bottom - 10

copy filtered data somewhere else and remove filter form the original column
venkat

I believe that the OP wants the last 10 numbers in a ROW. So
a) AutoFilter will not be any good because it works on columns and
b) In any case the AutoFilter Bottom 10 would return the 10 smallest numbers, not the last 10 numbers in the column.


det1nrs
Can you confirm that if the row was
1 2 3 4 5 b 6 b 7 8 9 b 10
where b represents a blank, then you still would want
1 2 3 4 5 6 7 8 9 10
returned rather than
4 5 b 6 b 7 8 9 b 10?
 
Upvote 0
Assumptions:

1) Sheet1 contains the data

2) Row 2 is the first row containing data

3) Each row begins at Column B

4) Only non-blank cells are to be returned

Formula:

On Sheet2...

B2, copied across and down:

=IF(COLUMNS($B2:B2)<=COUNT(Sheet1!$B2:$IV2),INDEX(Sheet1!$B2:$IV2,LARGE(IF(Sheet1!$B2:$IV2<>"",COLUMN(Sheet1!$B2:$IV2)-COLUMN(Sheet1!$B2)+1),MIN(10,COUNT(Sheet1!$B2:$IV2))-COLUMN()+COLUMN($B2))),"")

...confirmed with CONTROL+SHIFT+ENTER. Note, however, since you're using Excel 2007, convert the data into a list...

Data > Create > Create List

Now the ranges will automatically adjust as data is added or removed.

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,373
Members
449,155
Latest member
ravioli44

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