How do i get the last 5 cells out of a column

dannyi21i

New Member
Joined
Feb 25, 2018
Messages
17
in my work sheet i want to get the last 5 cells of a column and display them in 5 other cells.

i used the formula below and dragged it down 5 to show the last 5 cells and it worked to an extent but if the last 5 cells are all the same it messes up and doesnt show the last 5 cells;

=INDEX(AC51:AC76,MATCH(99^99,AC51:AC76,1)-1)

please can anyone help me?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Cross-Posting
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
Hi Fluff,
I am not sure it is allowed to post an answer in a thresd with a crossposting warning but for our friends I try this short formula simple to underrstand and easy to customize:
=INDEX($C$4:$C$11,ROWS($C$4:$C$11)-ROW(A1)+1)

ciao
 
Upvote 0
Hi Fluff,
I am not sure it is allowed to post an answer in a thresd with a crossposting warning
You're more than welcome to continue posting.
We just like the OP to let people know.
 
Upvote 0
Cross-Posting
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

yh the other site has the same rules and someone called me out on it there as well, i should have read the rules, my apologies for breaking the rules.

heres the link to my other post. thankyou all for your help as well.


https://www.excelforum.com/excel-general/1221591-want-to-show-the-last-5-cells-of-a-column-2.html
 
Upvote 0
ran into a problem with this code, if the cells im trying to get the last 5 from are coded but showing black it just shows blank for the last 5 instead of showing cells that have numbers in, is there anyway around this?

D4 and D3 should be showing the last 5 as well but its showing blank as the coding isnt showing anything.

 
Last edited:
Upvote 0
<b>Array Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D3</th><td style="text-align:left">{=IF(<font color="Blue">ROWS(<font color="Red">D$3:D3</font>)>5,"",INDEX(<font color="Red">$C$3:$C$100,LARGE(<font color="Green">IF(<font color="Purple">$C$3:$C$100<>"",ROW(<font color="Teal">$C$3:$C$100</font>)-ROW(<font color="Teal">$C$3</font>)+1</font>),ROWS(<font color="Purple">D$3:D3</font>)</font>)</font>)</font>)}</td></tr></tbody></table><b>Entered with Ctrl+Shift+Enter.</b> If entered correctly, Excel will surround with curly braces {}.</td></tr></table><br />


Excel 2013/2016
ABCDE
1
2W/L/DLAST 5
3DJ
4DD
5WL
6PL
7LP
8L
9D
10J
11
12
13
Sheet1
 
Upvote 0

Forum statistics

Threads
1,216,111
Messages
6,128,899
Members
449,477
Latest member
panjongshing

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