Forum Discussion

Minghao Liao's avatar
Minghao Liao
Copper Contributor
May 21, 2018
Solved

Trying to make my Stock Spreadsheet work

I am trying to make my stock workbook by having 2 sheets. One where I enter transactions and one where I can see a stock summary.    I will enter information in my sheet "Transactions(SG)" and I wo...
  • Matt Mickle's avatar
    May 21, 2018

    Try updating your formulas to these:

     

    G2: {=IFERROR(INDEX('Transactions(SG)'!$J$2:$J$24,SUMPRODUCT(MAX(('Transactions(SG)'!$C$2:$C$24=A2)*ROW('Transactions(SG)'!$C$2:$C$24)))-ROW('Transactions(SG)'!$J$2:$J$24)+1),"No Transactions")}

     

    H2: {=IFERROR(INDEX('Transactions(SG)'!$O$2:$O$24,SUMPRODUCT(MAX(('Transactions(SG)'!$C$2:$C$24=A2)*ROW('Transactions(SG)'!$C$2:$C$24)))-ROW('Transactions(SG)'!$O$2:$O$24)+1),"No Transactions")}

     

    Please see attached file for additional reference.  You may need to change the "No Transactions" portion of the formula to 0 to avoid error messages.  This will happen if there is no transaction associated with the symbol.

Resources