# Get Second to Last from List

#### Clermont

##### New Member
I have attempted to get a formula to pick up the second from last entry of a particular selection from a list, however appears not perfect.

=index(b2:b1000,sumproduct(max(row(a2:a1000)*(h2A2:A1000))-2))

H2=Selection / Column B= Result Person) / Column A= Data. I would appreciate any pointers in the right direction.

Many Thanks

### Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

#### Eric W

##### MrExcel MVP
Welcome to the forum.

Try:

=INDEX(B2:B1000,AGGREGATE(14,6,(ROW(A2:A1000)-ROW(A2)+1)/(A2:A1000=H2),2))

#### DanteAmor

##### Well-known Member
Try

=INDEX(B:B,COUNTA(B2:B1000))

#### Clermont

##### New Member
Eric - Works a treat. Many thanks

You're welcome.

1,101,756
Messages
5,482,698
Members
407,358
Latest member
Maze123

### This Week's Hot Topics

• Finding issue in If elseif else with For each Loop
Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
• MsgBox Error
Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
• CELL FORMAT - IF CONDITION
My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
• Show numbers nearly the same
Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...