问题
I'm trying to set up a query using named ranges, is it possible to select a named range within a query?
I've tried the following:
=QUERY(NamedRange, "select '"&NamedRange2&"' where '"&NamedRange3&"' contains '"&B2&"' ")
I want to be able to use named ranges instead of having to use select A where...
or select col1 where...
since the spreadsheet is constantly going through revisions where columns change so I want to keep the query dynamic so it doesn't constantly need updating.
回答1:
partially. you can have it like this:
=QUERY({NamedRange}, "select Col1 where Col1 contains '"&B2&"'")
来源:https://stackoverflow.com/questions/56077747/how-to-select-a-named-range-in-google-sheets-query