alainfranco
New Member
- Joined
- Mar 7, 2012
- Messages
- 38
Hello,
For the life of me, I can't figure this one out...
I am trying to search and return all records matching 2 criteria. This formula works perfectly for 1 criterion, but I am unable to get it a second one in there...
Working Formula for 1 criterion:
Formula I am struggling with:
Is this even the correct way to string additional criteria?
I have a file ready with the data and formulas. Is there anyway for me to attach it to this post? Otherwise, here are the tabs and their content:
Data table:
https://ibb.co/jNDSmc
Query with 1 criterion. Successfully returns all matching records:
https://ibb.co/dxCbex
Same query, but on line 2:
https://ibb.co/eqJDsH
Query with 2 criteria that I am struggling with:
https://ibb.co/dM7nmc
Can anyone please point me in the right direction?
Thanks,
A.
For the life of me, I can't figure this one out...
I am trying to search and return all records matching 2 criteria. This formula works perfectly for 1 criterion, but I am unable to get it a second one in there...
Working Formula for 1 criterion:
Code:
=IF($A$1="","",(IF(ISERROR(INDEX(Data!$A$1:$E$11,SMALL(IF(Data!$A$1:$A$11=$A$1,ROW(Data!$A$1:$A$11)),ROW(1:1)),1)),"",INDEX(Data!$A$1:$E$11,SMALL(IF(Data!$A$1:$E$11=$A$1,ROW(Data!$A$1:$E$11)),ROW(1:1)),1))))
Formula I am struggling with:
Code:
=IF($G$1="","",(IF(ISERROR(INDEX(Data!$A$1:$E$11,SMALL(IF(AND(Data!$A$1:$A$11=$G$1,Data!$B$1:$B$11=$G$2),ROW(Data!$A$1:$A$11)),ROW(1:1)),1)),"",INDEX(Data!$A$1:$E$11,SMALL(IF(Data!$A$1:$E$11=$G$1,ROW(Data!$A$1:$E$11)),ROW(1:1)),1))))
Is this even the correct way to string additional criteria?
I have a file ready with the data and formulas. Is there anyway for me to attach it to this post? Otherwise, here are the tabs and their content:
Data table:
https://ibb.co/jNDSmc
Query with 1 criterion. Successfully returns all matching records:
https://ibb.co/dxCbex
Same query, but on line 2:
https://ibb.co/eqJDsH
Query with 2 criteria that I am struggling with:
https://ibb.co/dM7nmc
Can anyone please point me in the right direction?
Thanks,
A.
Last edited: