Parameter List
Syntax
QUERY(data, query,
[headers]
)data
The range or {data} cell from where data is to be read.
query
The query language that will select and transform the data. For example: "select *", "select B,A where B>2". Supports:
Selectionswith SELECTMathematical operationswith SUM, MIN, MAX, AVERAGE,COUNTConditional clauseswith WHEREAggregationswith GROUP BYSortingwith ORDER BY
[optional] headers
Number corresponds to the rows that are part of the header. Default is 1, meaning that the first row is the header of the table.