Hi, I'm making a stock investment tracker where all you have to do is enter in the transaction and it gives you all the your positions, whether they are open or closed etc. I was finally able to figure out a way to find my average cost per share after buying/selling/rebuying. I have a column that tracks the average price after every transaction for that specific stock but on my second sheet which contains a simplified holding sheet i want to have the most recent average price per share per stock. I tried to write a formula that checks if the names of the stocks are the same and then if the dates are the same and if they are return the corresponding average cost cell but it keeps returning false. Would appreciate any help!