差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
tech:google_spreadsheets_tips [2019/05/15 12:07] – jonathan_tsai | tech:google_spreadsheets_tips [2021/12/21 08:57] (目前版本) – [原始資料彙整與排序] jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Google Spreadsheets(試算表) 使用技巧 ====== | ====== Google Spreadsheets(試算表) 使用技巧 ====== | ||
+ | ===== 取排序後的第一筆資料 ===== | ||
+ | * 參考 - https:// | ||
+ | * 使用 Google 表單回報, | ||
+ | * Exp. < | ||
+ | * 主要使用 array_constrain 這個 function 來處理, 配合 sort 與 filter 將最後一筆資料取出來 | ||
+ | * ' | ||
+ | * array_constrain(資料清單, | ||
+ | |||
+ | ===== 對多欄位進行 or 篩選 ===== | ||
+ | * 參考 - https:// | ||
+ | * 因為預設 filter 後面的多條件是 and 的篩選方式, | ||
+ | =FILTER(A1: | ||
+ | </ | ||
===== 讀取另一個 Google Spreadsheets 內容 ===== | ===== 讀取另一個 Google Spreadsheets 內容 ===== | ||
行 22: | 行 35: | ||
* 範例檔案 - https:// | * 範例檔案 - https:// | ||
+ | ===== 使用 Query 來篩選彙整資料表內的資料 ===== | ||
+ | * 參考 - https:// | ||
+ | * Exp. 假設有一個來源分頁紀錄原始資料, | ||
+ | * <cli> | ||
+ | =query(' | ||
+ | select A , B, M, sum(O), sum(P), sum(Q), sum(R) | ||
+ | where (M!='' | ||
+ | group by M, A, B | ||
+ | order by A, B, M | ||
+ | label A ' | ||
+ | ", -1) | ||
+ | </ | ||
{{tag> | {{tag> | ||