+ Reply to Thread
Results 1 to 4 of 4

Multiple criteria lookup including recent date.

  1. #1
    Registered User
    Join Date
    09-29-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    3

    Multiple criteria lookup including recent date.

    Hi I'm sorry if this seems redundant to you all, but I can't seem to locate a solution that could solve my problem when I searched the forum. But I did find some formulas and functions but I just could not make them work. I have attached a copy of my excel file.

    I would like to lookup the most recent "MarketPrice" from the PortfolioTransaction Sheet. I will have 3 criteria, Recent date, Code, Type. I tried using the following formula that I found from the net and was suggested often, but they did not have the most recent date criteria in them so I tried adding it myself. Here it is.

    {=INDEX(PortfolioTransaction!E:E,MATCH(1,(PortfolioTransaction!B:B=PortfolioSUM!A2)*(PortfolioTransaction!D:D="Buy")*(MAX(PortfolioTransaction!A:A)),0))}

    But this returns a #N/A result.

    I've been tweaking this for hours now, my head is starting to hurt.

    Thanks!
    Attached Files Attached Files

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

    Re: Multiple criteria lookup including recent date.

    hi Dimydom, welcome to the forum. try this array formula:
    Please Login or Register  to view this content.
    as you have done with your formulas, CTRL + SHIFT + ENTER to confirm. i do not recommend looking up the whole column as it slows down Excel. more so if you are using array formulas.

    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
    Registered User
    Join Date
    09-29-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    3

    Wink Re: Multiple criteria lookup including recent date.

    Thank you benishiryo, I'll try it now. Regarding the whole column, yes, my file does seem to slow down excel to the point it sometimes crashes, I thought I got a virus from somewhere.

    Thanks! Will tell you what happens.

  4. #4
    Registered User
    Join Date
    09-29-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Multiple criteria lookup including recent date.

    It worked!

    I will now deconstruct what you gave me so that I will be able to understand how you did it... My head is still hurting, but you made it more bearable!

    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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