QUERY

對多筆資料執行 Google Visualization API Query Language 查詢作業。

使用範本

QUERY(A2:E6,"select avg(A) pivot B")

QUERY(A2:E6,F2,FALSE)

語法

QUERY(資料, 查詢, [標題])

  • 資料 - 查詢作業針對的儲存格範圍。

    • Each column ofdata can only hold boolean, numeric (including date/time types) or string values.

    • In case of mixed data types in a single column, the majority data type determines the data type of the column for query purposes. Minority data types are considered null values.

  • 查詢 - The query to perform, written in the Google Visualization API Query Language.

    • 查詢的值須輸入在引號內,或為包含適當文字的儲存格參照。

    • 如要進一步瞭解查詢語言,請前往 https://developers.google.com/chart/interactive/docs/querylanguage。

  • 標題 - [ OPTIONAL ] - The number of header rows at the top of data。如果忽略這個引數或設成 -1,則系統會根據資料內容猜測引數值。

範例

範例資料。

Returns rows that match the speified condition using 選取Where clauses.

Aggregates Salary values across rows using 選取Group by clauses.

Transforms distinct valus in columns into new columns..

Aggregates Dept values accross rows and sorts by the maximum value of Salary

Specifies the number of header rows in the input range, which enables transformation of multi-header rows range input to be transofrmed to a single row header input.

true
造訪學習中心

您有在公司或學校使用 Google 文件等 Google 產品嗎?快來試試實用的秘訣、教學課程和範本,瞭解如何在不安裝 Office 的情況下處理 Office 檔案、建立動態專案計劃和小組日曆、自動整理收件匣及進行其他作業。

搜尋
清除搜尋內容
關閉搜尋
主選單
544951391318659084
true
搜尋說明中心
true
true
true
true
true
35
false
false