3

What's the shortcut for

=QUERY($A:$K, "select A where B contains '"&N1&"' or C contains '"&N1&"' or D contains'"&N1&"' or E contains '"&N1&"' or F contains '"&N1&"' or G contains '"&N1&"' or H contains '"&N1&"' or I contains '"&N1&"' or J contains '"&N1&"' or K contains '"&N1&"'",3)

?

I'm hoping for something like

=QUERY($A:$K, "select A where B,C,D,E,F,G,H,I,J,K contains '"&N1&"'",3)

Cross-posted to Stack Overflow

2 Answers 2

2

Add a column (L for example) to count whether "N1" features in any of the columns of interest, say with:

 =countif(B4:K4,"*"&N$1&"*")  

copied down to suit and use that in the query:

=query(A:L,"select A where L>0",3)
1
  • 1
    Oh sigh already implemented long version. Lol thanks pnuts ^-^
    – BCLC
    Commented Apr 17, 2017 at 6:42
1

There are no mention of shortcuts on https://developers.google.com/chart/interactive/docs/querylanguage, the reference documentation of the SQL statement argument of Google Sheets' QUERY function

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.