morning all,
this is an evolved formula based on an old thread so I wasn't sure whether it should be a new thread or same (different problem).
I have an array formula which works a treat and bring back any acct referenced to "BACS". (see below).
=IFERROR(INDEX(DataPull!$A$1:$A$2000,SMALL(IF(DataPull!L:L="BACS",IF(DataPull!$K$1:$K$2000>=$P$3+0,IF(DataPull!$K$1:$K$2000<=$P$4+0,ROW(DataPull!$C$1:$C$2000)-ROW(DataPull!$C$1)+1))),ROWS($A$1:$A1))),"")
However I want to bring back any references to meet any of the criteria, "BACS" "TP" "CASH" "PO".
So the nested formula is:
=IFERROR(INDEX(DataPull!$A$1:$A$2000,SMALL(IF(OR(DataPull!L:L="BACS",DataPull!L:L="TP",DataPull!L:L="CASH",DataPull!L:L="PO"),IF(DataPull!$K$1:$K$2000>=$P$3+0,IF(DataPull!$K$1:$K$2000<=$P$4+0,ROW(DataPull!$C$1:$C$2000)-ROW(DataPull!$C$1)+1))),ROWS($A$1:$A1))),"")
This unfortunately is bringing back ANY reference so the array is finding the first occasion then just copying anything in the dataset whether it meets if/or or not.
Any ideas why this may be happening?
this is an evolved formula based on an old thread so I wasn't sure whether it should be a new thread or same (different problem).
I have an array formula which works a treat and bring back any acct referenced to "BACS". (see below).
=IFERROR(INDEX(DataPull!$A$1:$A$2000,SMALL(IF(DataPull!L:L="BACS",IF(DataPull!$K$1:$K$2000>=$P$3+0,IF(DataPull!$K$1:$K$2000<=$P$4+0,ROW(DataPull!$C$1:$C$2000)-ROW(DataPull!$C$1)+1))),ROWS($A$1:$A1))),"")
However I want to bring back any references to meet any of the criteria, "BACS" "TP" "CASH" "PO".
So the nested formula is:
=IFERROR(INDEX(DataPull!$A$1:$A$2000,SMALL(IF(OR(DataPull!L:L="BACS",DataPull!L:L="TP",DataPull!L:L="CASH",DataPull!L:L="PO"),IF(DataPull!$K$1:$K$2000>=$P$3+0,IF(DataPull!$K$1:$K$2000<=$P$4+0,ROW(DataPull!$C$1:$C$2000)-ROW(DataPull!$C$1)+1))),ROWS($A$1:$A1))),"")
This unfortunately is bringing back ANY reference so the array is finding the first occasion then just copying anything in the dataset whether it meets if/or or not.
Any ideas why this may be happening?
Last edited: