+ Reply to Thread
Results 1 to 4 of 4

Using Index and match to find last occurence

  1. #1
    Forum Contributor
    Join Date
    10-05-2012
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    106

    Using Index and match to find last occurence

    I have done some poking around the internet but have not found exactly what I am looking for. I have found ways to look up a last occurnce using LOOKUP but I need to match multiple criteria.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    this obviously returns the first occurence but I need the last. any help would be appreciated.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Using Index and match to find last occurence

    Use a BigNum lookup.

    =LOOKUP(2,1/(D:D=B1&A148),B:M)

    This matches to the last non-error of a set, where each match equals a number and each error is skipped.

    Therefore, =LOOKUP(2,1/({1,0,1,0,1}=0),{bob,mike,sally,tom,dave}) = tom
    Last edited by daffodil11; 02-28-2014 at 07:28 PM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using Index and match to find last occurence

    lookup should work

    =LOOKUP(2,1/($d$2:$d$1000=$B$1&A148),$b$2:$b$1000)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    10-05-2012
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    106

    Re: Using Index and match to find last occurence

    Not sure where I was wonking up on the LOOKUP but I got it to work finally. Thanks.

+ 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. [SOLVED] Index And Match to find second occurence Help wanted
    By tropsog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2013, 12:24 PM
  2. [SOLVED] index-match where match needs to find substring
    By Machtyn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2012, 11:33 AM
  3. Multiple value occurence index/match
    By mechen8 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2012, 07:01 AM
  4. Replies: 5
    Last Post: 02-29-2012, 08:51 PM
  5. [SOLVED] INDEX, FIND.... MATCH????
    By Sonya in forum Excel General
    Replies: 3
    Last Post: 10-27-2005, 04:05 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