+ Reply to Thread
Results 1 to 3 of 3

Look Up Most Recent Date

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    30

    Look Up Most Recent Date

    In Column B of my current workbook I'm using this function:

    Please Login or Register  to view this content.
    This looks up the task number in A2 of my current workbook against the same task number in a workbook called "LookupBook" & returns a date the task was done.

    However, "LookupBook" will have the same task number multiple times.

    At present its looking up the first occurrence of that task number in "LookupBook" and returning that date when I need the date for the most recent occurrence of that task number instead.

    Can anyone advise how to modify this function to look up the most recent date from "LookupBook" associated with that task.

    Any help would be deeply appreciated.

    I'm using Excel 2007.

  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: Look Up Most Recent Date

    Probably you need a combination of INDEX-MATCH-MAX functions.

    a small sample workbook will be useful.
    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
    Forum Contributor
    Join Date
    02-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    187

    Re: Look Up Most Recent Date

    Drop this code into VBA and it will be a 'reverse' vlookup that returns the last match instead of the first. the formula is exactly the same as =vlookup, but it starts =VarLookRev(.

    In order to work, whole columns must be selected for the lookrange, not just part of them.

    Please Login or Register  to view this content.
    Let me know if it helps!

+ 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] Help - Date of most recent Mon, Wed, or Fri
    By SMCC in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2013, 11:34 AM
  2. Pull data from web within date range or recent date
    By Tlandress in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 02-28-2013, 01:44 PM
  3. Formula for Most Recent Date
    By scottnshelly in forum Excel General
    Replies: 2
    Last Post: 12-23-2009, 01:04 PM
  4. Return Value with most recent date
    By Kles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-14-2009, 05:52 PM
  5. Most recent date
    By janer4jc in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-25-2008, 07:19 AM

Tags for this Thread

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