it's basically the same array formula.
in sheet2 B3:
Formula:
=IFERROR(INDEX(Sheet1!F$1:F$10,LARGE(IF(Sheet1!C$1:C$10=A3,ROW(C$1:C$10),""),1)),0)
and copy down to B4
just a reminder - array formula.
BTW. My proposition for F2 in sheet1 would be regular formula (not array):
Formula:
=IF(B2="Buy",1,-1)*D2+SUMIFS(D$1:D1,C$1:C1,C2,B$1:B1,"Buy")-SUMIFS(D$1:D1,C$1:C1,C2,B$1:B1,"Sell")
and what is yours, as you not disclose it in the attachment, while may be somebody using http://www.excelforum.com/search.php will find this thread and may be for her/him it will not be "It is easy to write the formula for column F"?
Bookmarks