I would like a query on the 'query' tab that searches sheet 'sales' and returns all values if it matches the dropdown selection on the 'query' tab


1 Answer 1


Quote string literals in the query statement, like this:

=query(sales!A1:C, "where '" & B2 & "' <= A and A <= '" & B3 & "' ", 1)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.