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!
Bookmarks