+ Reply to Thread
Results 1 to 9 of 9

Reverse LOOKUP to find the Second matching value from the bottom

  1. #1
    Registered User
    Join Date
    02-15-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Reverse LOOKUP to find the Second matching value from the bottom

    How do I return the second matching value from the bottom of a table?

    In the attached example, the red, bold value is what I'm trying to return, but it must be found from the bottom up.
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Reverse LOOKUP to find the Second matching value from the bottom

    =index(b3:b8,match(d3,a3:a8,1))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    02-15-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Reverse LOOKUP to find the Second matching value from the bottom

    In this example, it finds a value of '5', where it should find a value of '100'.

    Any ideas?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Reverse LOOKUP to find the Second matching value from the bottom

    ARRAY formula

    =INDEX($B$3:$B$8,SMALL(IF($A$3:$A$8=$D$3,ROW($B$3:$B$8)-2),ROW(B2)))

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Reverse LOOKUP to find the Second matching value from the bottom

    @Fotis

    As the OP requests the second value from the bottom up your formula should be tweaked a bit to :
    Please Login or Register  to view this content.
    (array formula of course)

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Reverse LOOKUP to find the Second matching value from the bottom

    ...from the bottom up


    Thanks Pepe.. I think that i need glasses....

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Reverse LOOKUP to find the Second matching value from the bottom

    Well, maybe some glasses of Ouzo less

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Reverse LOOKUP to find the Second matching value from the bottom

    Ouzo, is for the Summer-near the sea- or the sunshine weekends of the winter!

    In any case, what is sure is that is not good idea at all when i am in the office.

  9. #9
    Registered User
    Join Date
    02-15-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Reverse LOOKUP to find the Second matching value from the bottom

    Awesome. The change seems to work. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1