Results 1 to 6 of 6

Thread: Need help to get most resent date value in Vlookup

  1. #1
    Join Date
    Feb 2012
    Posts
    11

    Need help to get most resent date value in Vlookup

    I have a set of data where Column A contains an personal ID# (001). Column B contains a timestamp. My table has multiple entries for each ID# and different timestamps for each entry. I want to use a vlookup to find the MOST RECENT timestamp for EACH ID. Any help would be greatly appreciated.

  2. #2
    Join Date
    Aug 2011
    Posts
    695

    Re: Need help to get most resent date value in Vlookup

    With your data in ColA/B and the query ID in cell C1 try the below =SUMPRODUCT(MAX(($A$2:$A$100=C1)*$B$2:$B$100))

  3. #3
    Join Date
    Nov 2010
    Posts
    503

    Re: Need help to get most resent date value in Vlookup

    This is an ARRAY formula that must be entered/edited using ctrl+shift+enter =MIN(IF(a6:a66="a",B6:B66))

  4. #4
    Join Date
    Nov 2010
    Posts
    422

    Re: Need help to get most resent date value in Vlookup

    Starting in D1 I have a column of unique IDs - made with Advanced Filter. In E1 I used this array formula =MAX(IF(A:A=D1,B:B)) (Array formula - so complete it with CTR+SHIFT+ENTER not just ENTER). You will need to format the cell as Date otherwise it will display the 5-digit serial number of the date. Copy down the column if you use ranges, make use you use absolute references as in =MAX(IF($A$1:$A$100=D1,$B$100:$B1$100)).

  5. #5
    Join Date
    Jul 2011
    Posts
    434

    Re: Need help to get most resent date value in Vlookup

    I could not get that to work... In it's current form it just returned zero. I tried =SUMPRODUCT(MAX(--($A$2:$A$100=C1), $B$2:$B$100)). But that just returned the max date regardless of the ID selected. Here is what I ended up with. You can try =MAX(IF($A$2:$A$100=C1, $B$2:$B$100)). Note this is an array formula and MUST be committed using Shift + Ctrl + <Enter>.

  6. #6
    Join Date
    Aug 2011
    Posts
    540

    Re: Need help to get most resent date value in Vlookup

    I remember a similar response from you few months back while I used SUMPRODUCT() MAX() combination; but I found that too late to respond. It works when the criteria (here ColA) is both text and numerics.

Similar Threads

  1. How to get yes or no in Vlookup in Excel
    By Gurmeet in forum MS Office Support
    Replies: 2
    Last Post: 24-01-2012, 04:57 PM
  2. duplicate vlookup help
    By saif49 in forum Windows Software
    Replies: 1
    Last Post: 12-11-2010, 04:57 PM
  3. Use VLookup in vba
    By mellisahi in forum Software Development
    Replies: 3
    Last Post: 11-09-2009, 05:33 PM
  4. Using vlookup function Please help
    By CheckMeNot in forum Windows Software
    Replies: 3
    Last Post: 25-06-2009, 09:28 AM
  5. Need help for vlookup function
    By Sunny55 in forum Windows Software
    Replies: 4
    Last Post: 09-05-2009, 12:39 PM

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
  •  
Page generated in 1,714,817,017.76687 seconds with 17 queries