We can use the AND, OR, NOT logical operators in the Where clause in Query.Β The purpose of Where clause in Query is to return only rows that match aΒ specified condition.
To NOT select a particular condition, you can use <>
or !=
. This would look something like this: =QUERY(ICON,"Select B,C,A,AF,AG,AH,Z WHERE AF!='NO'")