Forum Discussion

rafaelcilios's avatar
rafaelcilios
Copper Contributor
Oct 19, 2022
Solved

Last Dividend Transaction

Hi Guys, hope to get some help around here.   I am trying to return the last Div transaction from the worksheet Transactions to HoldingsDB.   A                              B              C      ...
  • OliverScheurich's avatar
    OliverScheurich
    Oct 19, 2022

    rafaelcilios 

    You are welcome. Sorry the first formula was missing the "Div" condition.

    =INDEX('Transactions to HoldingsDB'!$D$1:$D$3,MATCH(LARGE(IF(('Transactions to HoldingsDB'!$C$1:$C$3=HoldingsDB!A5)*('Transactions to HoldingsDB'!$B$1:$B$3="Div"),'Transactions to HoldingsDB'!$A$1:$A$3),1),'Transactions to HoldingsDB'!$A$1:$A$3,0))

    You can try this formula which takes into account the Type criteria "Div". 

Resources