+ Reply to Thread
Results 1 to 3 of 3

Vlookup Base on Criteria but pick up the entry based on the latest date

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    SG
    MS-Off Ver
    Excel 2007
    Posts
    15

    Vlookup Base on Criteria but pick up the entry based on the latest date

    Hello all!

    Would like to seek advice if it is possible to vlookup based on a critera like for example

    AA - 1 - 01/01/2013 - $2
    AA - 1 - 10/01/2013 - $4
    AA - 2 - 01/01/2013 - $5
    AA - 2 - 10/01/2013 - $8

    1st Criteria = AA
    2nd Criteria = 1

    where the vlookup will return the latest date (amount a range of dates) amount of $4.

    Appreciate your advice!

    Thanks!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Vlookup Base on Criteria but pick up the entry based on the latest date

    hi there. say your data is as such:
    Data Range
    A
    B
    C
    D
    2
    AA
    1
    1-Jan-13
    $2.00
    3
    AA
    1
    10-Jan-13
    $4.00
    4
    AA
    2
    1-Jan-13
    $5.00
    5
    AA
    2
    10-Jan-13
    $8.00

    try:
    =LOOKUP(2,1/((A2:A10="AA")*(B2:B10=1)*(C2:C10=SUMPRODUCT(MAX((A2:A10="AA")*(B2:B10=1)*C2:C10)))),D2:D10)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Vlookup Base on Criteria but pick up the entry based on the latest date

    Another way..

    =SUMPRODUCT((A1:A4="AA")*(B1:B4=1)*(C1:C4=MAX(INDEX((A1:A4="AA")*(B1:B4=1)*C1:C4,0),0))*D1:D4)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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] Latest date based on vlookup - mistake in formula
    By mathieuv in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-03-2013, 04:22 AM
  2. [SOLVED] Pick the latest value using vlookup
    By imran91 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-12-2012, 09:17 PM
  3. [SOLVED] Latest Entry based upon date.
    By halfpint123 in forum Excel General
    Replies: 7
    Last Post: 08-20-2012, 04:17 PM
  4. Replies: 1
    Last Post: 01-20-2012, 09:44 AM
  5. Vlookup The Latest Entry by Date
    By Christeen in forum Excel General
    Replies: 6
    Last Post: 05-05-2011, 07:29 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