0
votes

I am trying to filter a Google sheet with columns A to O using a query on a second sheet. I can put this formula in a new sheet and it pulls all the data just like its supposed to.

=query('Inventory'!$A$1:$O, "select * ", 1 )

What I am trying to do is filter the spreadsheet with a where clause that is to use a cell dropdown list (generated by unique values in the original sheet). I have used this formula:

=query('Inventory'!$A$1:$O, "select * where B = "&C1&"", 1 )

where C1 has the drop down box. This always gives me the error:

"Error Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: value" (the value depends on what is selected in the drop down).

It also doesn't work if I wrap the B = "&C1&" in parenthesis () which i have seen other posts use.

When I looked at Google's site for their example (https://support.google.com/docs/answer/3093343?hl=en), this should be a no-brainier unless something changed and their site isn't up to date.

I apologize for something this simple.

1

1 Answers

1
votes

Try

=query('Inventory'!$A$1:$O, "select * where B = '"&C1&"'", 1 )