+ Reply to Thread
Results 1 to 8 of 8

How to get most recent date through vlookup.

  1. #1
    Registered User
    Join Date
    08-10-2020
    Location
    Riyadh
    MS-Off Ver
    MS Office 365 Apps for Bussiness (Windows 10 64 Bit)
    Posts
    68

    How to get most recent date through vlookup.

    HI,
    as you can see the image below i have some numbers in "B Column" i want to get most recent date of each number in "H Column" through vlookup. since i am using office 365 i have xlookup also...file attached



    thanks




    latest date.png
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,745

    Re: How to get most recent date through vlookup.

    Neither VLOOKUP nor XLOOKUP are required.

    =MAXIFS($A$2:$A$84,$B$2:$B$84,G2)

    You'll need to format cells as short date.

    Please update your forum profile with MS365.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-10-2020
    Location
    Riyadh
    MS-Off Ver
    MS Office 365 Apps for Bussiness (Windows 10 64 Bit)
    Posts
    68

    Re: How to get most recent date through vlookup.

    Thanks allot as it works perfectly, Can u add a condition if it doesn't find the number in columns it will give not found message. thanks
    Last edited by AliGW; 07-12-2021 at 10:13 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,745

    Re: How to get most recent date through vlookup.

    Yes:

    =IFERROR(MAXIFS($A$2:$A$84,$B$2:$B$84,G2),"Not Found")

    You still need to update your profile, please.

  5. #5
    Registered User
    Join Date
    08-10-2020
    Location
    Riyadh
    MS-Off Ver
    MS Office 365 Apps for Bussiness (Windows 10 64 Bit)
    Posts
    68

    Re: How to get most recent date through vlookup.

    I tried it but it gives following error. i highlight it in red color.

    Attachment 739948
    Last edited by AliGW; 07-12-2021 at 10:16 AM. Reason: PLEASE stop quoting unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,745

    Re: How to get most recent date through vlookup.

    Try this:

    =IF(MAXIFS($A$2:$A$84,$B$2:$B$84,G2)=0,"Not Found"MAXIFS($A$2:$A$84,$B$2:$B$84,G2))

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,745

    Re: How to get most recent date through vlookup.

    Thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: How to get most recent date through vlookup.

    Alternative solution using AGGREGATE: =IFERROR(AGGREGATE(14,6,$A$2:$A$84/($B$2:$B$84=G2),1),"Not Found")

+ 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] VLOOKUP returning values with the most recent date
    By m3rl1n in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-19-2021, 12:19 AM
  2. [SOLVED] Date VLOOKUP - Most Recent Dates
    By Terry-J in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-28-2017, 04:08 PM
  3. [SOLVED] VLOOKUP based on multiple criteria with most recent date
    By Webbers in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-02-2015, 07:53 AM
  4. [SOLVED] Modify Vlookup to find most recent date
    By nicki_rae22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2014, 07:56 PM
  5. Get VLOOKUP to pick most recent date from a selection
    By methuselah90 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2014, 06:58 PM
  6. Replies: 1
    Last Post: 10-21-2012, 05:03 PM
  7. Vlookup finding most recent date
    By albynas in forum Excel General
    Replies: 4
    Last Post: 06-03-2009, 03:34 AM

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