+ Reply to Thread
Results 1 to 5 of 5

A Jedi Mind Trick For Excel. VLookup The Last Occurrence

  1. #1
    Registered User
    Join Date
    02-18-2007
    MS-Off Ver
    Excel 2007 & 2003
    Posts
    25

    A Jedi Mind Trick For Excel. VLookup The Last Occurrence

    VLOOKUP(A1,[InADifferentWorkbook.xlsx]Sheet2'!A1:E2000,5,FALSE)

    The above VLOOKUP formula is in the main workbook and the data set is In "A Different Workbook". The value that is being looked up is a loan number in column 'A' (7000999999). The value that I want to return is the date in column 'E'. The loan numbers can occur more than once in column 'A' but I only need the last occurrence because the dates are sorted in column E from oldest down to most recent.

    To me, it seems like this would require Jedi Mind Tricks !

    Kindest thanks,
    Eddie

  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: A Jedi Mind Trick For Excel. VLookup The Last Occurrence

    VLOOKUP returns the first match, where LOOKUP returns the last.

    Use LOOKUP instead.

    =LOOKUP(lookup value, lookup vector, return vector)

    =VLOOKUP(A1,[InADifferentWorkbook.xlsx]Sheet2'!A1:A2000,[InADifferentWorkbook.xlsx]Sheet2'!E1:E2000)
    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 boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: A Jedi Mind Trick For Excel. VLookup The Last Occurrence

    Try the below array formula, (to be entered with ctrl+shift+enter not just enter)

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  4. #4
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: A Jedi Mind Trick For Excel. VLookup The Last Occurrence

    May be this for your ranges

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-18-2007
    MS-Off Ver
    Excel 2007 & 2003
    Posts
    25

    Re: A Jedi Mind Trick For Excel. VLookup The Last Occurrence

    Ah, now i feel like "Salacious Crumb" (Jabba The Hut's pet)

    thanks so much y'all. worked great

+ 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] VBA Vlookup Nth occurrence help
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2013, 09:33 PM
  2. [SOLVED] Maybe: VLOOKUP with first occurrence of a value?
    By SueWithQuestion in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2012, 01:38 PM
  3. vlookup -need 2nd occurrence
    By eds000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-27-2006, 09:55 PM
  4. Excel, a mind of its own
    By JAMES T. in forum Excel General
    Replies: 5
    Last Post: 02-22-2006, 10:15 PM
  5. [SOLVED] Definite mind-twister for an Excel MVP
    By Joe Schmoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2005, 01: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