+ Reply to Thread
Results 1 to 10 of 10

Index/ Match Last Instance

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Index/ Match Last Instance

    Hi,
    I am trying to get the below formula to choose the last instance of the value in the column, The formula I am currently using is shown below, Can anyone help me modify this? I think I need to use sumproduct in some way but cant work it out.

    =INDEX('X08'!$L$2:$L$4935,MATCH('Pre-Call'!$H4118&'Pre-Call'!$A4118,INDEX('X08'!$G$2:$G$4935&'X08'!$A$2:$A$4935,0),0))

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Index/ Match Last Instance

    Answer withdrawn. It wasn't an answer that worked...
    Last edited by Glenn Kennedy; 07-28-2015 at 04:55 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Index/ Match Last Instance

    Match formula will end with the first instance itself also yours is an array formula


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Index/ Match Last Instance

    Is there a way that I can get the last instance using the current formula or do I need a new formula?

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Index/ Match Last Instance

    Quote Originally Posted by Burt_100 View Post
    Is there a way that I can get the last instance using the current formula or do I need a new formula?
    You should use Glenn Kennedy suggestion to get the last instance. Because Lookup() will always arrive the last instance of the matching value.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Index/ Match Last Instance

    I have a solution, but the exact formula depends on what you are matching and concatenating (numbers or text). Please attach a sample spreadsheet - just showing the sort of data you have.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Index/ Match Last Instance

    If text: try this (entered as an array with CTRL-SHIFT-ENTER):

    =INDEX('X08'!$L$2:$L$4935,MAX(('Pre-Call'!$H4118&'Pre-Call'!$A4118='X08'!$G$2:$G$4935&'X08'!$A$2:$A$4935)*MATCH(ROW('X08'!$G$2:$G$4935),ROW('X08'!$G$2:$G$4935))))

    Here it is, working in a single sheet. You can adapt it, with a bit of luck!!
    Last edited by Glenn Kennedy; 07-28-2015 at 05:56 AM.

  8. #8
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Index/ Match Last Instance

    Works great thanks.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Index/ Match Last Instance

    You're welcome and thanks for the Reputation.

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Index/ Match Last Instance

    Or

    In G2 Cell - Normal Formula


    =IFERROR(LOOKUP(2,1/((A2:A14=E2)*(C2:C14=F2)),B2:B14),"")

+ 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. Index/Match ignoring Blanks/Zeros for each instance
    By corhrtz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-18-2015, 11:04 AM
  2. [SOLVED] Incorrect column number returned in INDEX, MATCH for nth instance
    By BuZZarD73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2014, 11:00 AM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. Replies: 4
    Last Post: 01-10-2014, 05:09 PM
  5. find 2nd instance of a duplicated value in an index/match formula?
    By Bobbo Jones in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 06-14-2013, 09:42 AM
  6. [SOLVED] Index / Match to find next instance of a value
    By boylers75 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-10-2012, 10:06 AM
  7. Pull every instance INDEX/MATCH criteria into consecutive rows
    By PowerSchoolDude in forum Excel General
    Replies: 4
    Last Post: 01-13-2010, 06:42 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