Reputation: 560
The following line doesn't work:
=QUERY(AB:AE,"select AB,AC,AD,AE where AB NOT LIKE '%Info%'",1)
Throws:
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " "AH "" at line 1, column 26. Was expecting one of: "(" ... "("
However, this one does:
=QUERY(AB:AE,"select AB,AC,AD,AE where AB LIKE '%Info%'",1)
Upvotes: 15
Views: 20870
Reputation: 50472
NOT should be before column identifier:
=QUERY(AB:AE,"select AB,AC,AD,AE where NOT AB LIKE '%Info%'",1)
Upvotes: 27
Reputation: 175766
Probably column AB
is nullable:
=QUERY(AB:AE,"select AB,AC,AD,AE where AB NOT LIKE '%Info%' OR AB IS NULL",1)
AB + (NOT AB) + (NULL in column AB) <=> entire set
Upvotes: 3