Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Query in Google Sheets with OR, using dropdown menu

$
0
0

I'm trying to pull data from the first tab, which collects data from a Google Form (regarding school subjects).

In the second tab, I have a dropdown menu in cell A3 with all subjects.

Say I choose "History" in my dropdown.

I have tried this which works:
=QUERY('Form responses 1'!A2:O110, "Select B, C, D, E, F where K = '"&A3&"' OR L = '"&A3&"' OR M = '"&A3&"'")

But, when I change the subject in the dropdown to "Geography", which can be found in L-column, it returns the #N/A.
So, the issue is that the query only looks at K every time.

What am I doing wrong?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>