Get Second to Last from List
Results 1 to 5 of 5

Thread: Get Second to Last from List
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Mar 2019
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Get Second to Last from List

    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

  2. #2
    MrExcel MVP Eric W's Avatar
    Join Date
    Aug 2015
    Location
    Bountiful, UT
    Posts
    8,345
    Post Thanks / Like
    Mentioned
    41 Post(s)
    Tagged
    5 Thread(s)

    Default Re: Get Second to Last from List

    Welcome to the forum.

    Try:

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

    When you eliminate the impossible, whatever remains, however improbable, must be the truth.

    -Posting guidelines, forum rules, terms of use, FAQs, BB codes, See how to search the forum
    -Post a screen shot with the HTML Maker

  3. #3
    Board Regular DanteAmor's Avatar
    Join Date
    Dec 2018
    Location
    México
    Posts
    5,322
    Post Thanks / Like
    Mentioned
    50 Post(s)
    Tagged
    14 Thread(s)

    Default Re: Get Second to Last from List

    Try

    =INDEX(B:B,COUNTA(B2:B1000))
    Regards Dante Amor

  4. #4
    New Member
    Join Date
    Mar 2019
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Get Second to Last from List

    Eric - Works a treat. Many thanks

  5. #5
    MrExcel MVP Eric W's Avatar
    Join Date
    Aug 2015
    Location
    Bountiful, UT
    Posts
    8,345
    Post Thanks / Like
    Mentioned
    41 Post(s)
    Tagged
    5 Thread(s)

    Default Re: Get Second to Last from List

    You're welcome.
    Cheers,
    Eric

    When you eliminate the impossible, whatever remains, however improbable, must be the truth.

    -Posting guidelines, forum rules, terms of use, FAQs, BB codes, See how to search the forum
    -Post a screen shot with the HTML Maker

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •