+ Reply to Thread
Results 1 to 5 of 5

Return last value of a searchvalue in a table

  1. #1
    Registered User
    Join Date
    01-13-2020
    Location
    Brussels, Belgium
    MS-Off Ver
    Office365
    Posts
    14

    Return last value of a searchvalue in a table

    Hi,

    I have a table with more then one time the same name in clolumn A.
    If i use INDEX and MATCH formula for that name to return the value of column B, it gives always the first found value. But now i want the last found value? How can i fix this?
    I don't want to use the filter.

    =INDEX(B5:B500,MATCH(C1,A5:A500,0))

    Thanks

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Return last value of a searchvalue in a table

    Hi VeKa,

    You use the Lookup() function that never gets to the end like:
    https://www.exceltip.com/excel-formu...ing-value.html

    See the formula in my attached below:
    Lookup Last Match.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,104

    Re: Return last value of a searchvalue in a table

    How about
    =LOOKUP(2,1/(A5:A500=C1),B5:B500)

  4. #4
    Registered User
    Join Date
    01-13-2020
    Location
    Brussels, Belgium
    MS-Off Ver
    Office365
    Posts
    14

    Re: Return last value of a searchvalue in a table

    Ok, both solutions worked for me.
    I used the Fluff13-way.. :-)

    Thanks a lot for both inputs

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,104

    Re: Return last value of a searchvalue in a table

    You're welcome & thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 03-09-2020, 06:25 PM
  2. [SOLVED] Search cell for words in table and then return table header
    By leovfx in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 05-01-2017, 05:59 PM
  3. LOOKUP TABLE -blank cell in the table array to return a figure
    By jonnops in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2014, 09:08 AM
  4. Replies: 12
    Last Post: 12-17-2013, 12:35 PM
  5. Replies: 7
    Last Post: 01-25-2013, 05:17 PM
  6. Vlookup return the header name of table (Table of 4 column x 55 rows)
    By sanpat in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-09-2013, 11:23 PM
  7. Replies: 4
    Last Post: 10-05-2012, 03:06 PM

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