Try this and see if it works...
Note: It's not a complete solution as it only checks "Last Name" from the sheet "Excluded"
=UNIQUE(QUERY({Submissions!B2:E,Excluded!A2:C},"Select Col1, Col2, Col3 Where Col4='abc' And Col2<>Col6"))
*************************************************************************************************
In order to have a complete solution, you need a unique ID for the data in sheets "Exclude" and "Submissions".
So, if you prefer this approach you will need to add a column in both of these sheets labeled as "KEY" in the top of the added columns.
In sheet "Exclude", the KEY formula in cell D2 is;
and in sheet "Submissions", the KEY formula in cell F2 is;
Drag down the cells to fill the necessary range ...
Then, use this formula in sheet "Results To Be" to get the expanded list;
=QUERY(UNIQUE(FILTER(Submissions!B2:F,Submissions!E2:E="abc", Submissions!C2:C<>Excluded!B2:B, Submissions!F2:F<>Excluded!D2:D)),"Select Col1, Col2, Col3")
Bookmarks