looking up the 2nd last number on a list

sobrien

Board Regular
Joined
Feb 28, 2006
Messages
179
I need a formula that looks up the 1st, 2nd last, 3rd last 4th last and 5th last number in an array from rows c:x. The list also has text in it "DNP" in some cells

For example in row 1 starting from C1

99 88 DNP 77 88 DNP DNP 76 DNP 66 79 80 (assume cells therafter are blank however will have data entered into them at a later date so cells C:X eventaully get filled over time.

Today though the answer to the formula would in cells z:ad would be

88 76 66 79 80 (i.e. the last 5 numbers from that row)

If next week another number gets added (say 101 gets added to the row) the answer in cells z:ad would be
76 66 79 80 101


Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Quite a few possibilities - one being:

Excel Workbook
CDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
19988DNP7788DNPDNP76DNP6679808876667980
29988DNP7788DNPDNP76DNP667980DNP10176667980101
31212
Sheet6


Formula in Z1 can be copied across results matrix (eg Z1:AD3 in the above)
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

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