Hi all,
I have an array formula to extract data from an excel table with two criteria. The sample file has the array formula I have written and it works as intended. The formula is as follows:
=INDEX(Movements!A:A,SMALL(IF((Movements!$A$6:$A$45=Sheet1!$A$4)*(Movements!$G$6:$G$45=Sheet1!$C$4),ROW(Movements!$A$6:$A$45)),ROW(A$1)))
However, I am trying to change the IF function to an IF(OR function but it does not work. The new array formula I am using is as follows:
=INDEX(Movements!A:A,SMALL(IF(OR((Movements!$A$6:$A$45=Sheet1!$A$4,Movements!$A$6:$A$45=Sheet1!$B$4))*(Movements!$G$6:$G$45=Sheet1!$C$4),ROW((A$1)))
Any help on where I am going wrong is appreciated.
Thanks all. I realized here the mistake was and have corrected the formula. The second bracket had to move to between the IF and OR. It now works as intended.
=INDEX(Movements!A:A,SMALL(IF((OR(Movements!$A$6:$A$45=Sheet1!$A$4,Movements!$A$6:$A$45=Sheet1!$B$4))*(Movements!$G$6:$G$45=Sheet1!$C$4),ROW((A$1)))
I have an array formula to extract data from an excel table with two criteria. The sample file has the array formula I have written and it works as intended. The formula is as follows:
=INDEX(Movements!A:A,SMALL(IF((Movements!$A$6:$A$45=Sheet1!$A$4)*(Movements!$G$6:$G$45=Sheet1!$C$4),ROW(Movements!$A$6:$A$45)),ROW(A$1)))
However, I am trying to change the IF function to an IF(OR function but it does not work. The new array formula I am using is as follows:
=INDEX(Movements!A:A,SMALL(IF(OR((Movements!$A$6:$A$45=Sheet1!$A$4,Movements!$A$6:$A$45=Sheet1!$B$4))*(Movements!$G$6:$G$45=Sheet1!$C$4),ROW((A$1)))
Any help on where I am going wrong is appreciated.
Thanks all. I realized here the mistake was and have corrected the formula. The second bracket had to move to between the IF and OR. It now works as intended.
=INDEX(Movements!A:A,SMALL(IF((OR(Movements!$A$6:$A$45=Sheet1!$A$4,Movements!$A$6:$A$45=Sheet1!$B$4))*(Movements!$G$6:$G$45=Sheet1!$C$4),ROW((A$1)))
Last edited: