Forum Discussion

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

Array Formula, If, Index? How to make my formula work to get what I need?

I have 2 sheets. Sheet 1 is Transactions and Sheet 2 is stock summary.    Under Transactions, I have entries that look like                A            B                          C               ...
  • Haytham Amairah's avatar
    May 01, 2018

    Hi Minghao,

     

    Please try this formula and find it in the attached file:

    =IF(ISNUMBER(MATCH(A2,Transactions!$B$2:B4,0)),INDEX(Transactions!$F$2:$F$4,MATCH(MAX(IF(A2=Transactions!B2:B4,Transactions!D2:D4)),Transactions!$D$2:$D$4,0)),"")

     

    Regards