我有車隊維護的維護計劃表,只要服務狀態為“實時”并且設備、服務型別過濾唯一時,我需要將資料復制到另一張表。需要幫助找出公式我嘗試過的示例公式是對還是錯,
電子表格鏈接:https ://docs.google.com/spreadsheets/d/1BUDC1euAHQXZ9rME7XEMV8YECrCH5DBmC7pM2lCzln0/edit?usp=sharing `
=ARRAYFORMULA(query('Master Schedule'!A1:O,"選擇 B,E,F,M,N,O 其中 O='Live'",1),Query('Master Schedule'!A1:O,"選擇 * "&UNIQUE('Master Schedule'!B2:E)&"",1))
=Query(Query('Master Schedule'!A1:O,"Select B,E,F,M,N,O where O='Live'"),"Select '"&UNIQUE({'Master Schedule'!B: B, '主計劃'!B:B&'主計劃'!E:E, '主計劃'!E:E})&"'",1)
=Arrayformula(VLookup(Filter(Unique('Master Schedule'!B:B &'Master Schedule'!E:E);Unique('Master Schedule'!B2:E)<>"");Query('Master Schedule' '!A:O; "選擇 B, E,F,M,N,O ";1); {1\2\3\4\5\6};0))
主要時間表
結果必填
uj5u.com熱心網友回復:
嘗試這個
=query(arrayformula(IFERROR(VLOOKUP(unique((Data!B:B&"~"&Data!E:E&"~"&Data!F:F&"~"&Data!M:M)),
query({arrayformula(Data!B:B&"~"&Data!E:E&"~"&Data!F:F&"~"&Data!M:M),Data!B:B,Data!E:E,Data!F:F,Data!M:O},"select * where Col7='Live'"),
{2,3,4,5,6,7},0))),"select * where Col1 is not null")
或用分號表示
=query(arrayformula(IFERROR(VLOOKUP(unique((Data!B:B&"~"&Data!E:E&"~"&Data!F:F&"~"&Data!M:M));
query({arrayformula(Data!B:B&"~"&Data!E:E&"~"&Data!F:F&"~"&Data!M:M)\Data!B:B\Data!E:E\Data!F:F\Data!M:O};"select * where Col7='Live'");
{2\3\4\5\6\7};0)));"select * where Col1 is not null")
解釋
建立一個獨特的參考作為unique(Data!B:B&"~"&Data!E:E&"~"&Data!F:F&"~"&Data!M:M)
使用此參考構建一個新矩陣,并且僅將“活動”行作為query({arrayformula(Data!B:B&"~"&Data!E:E&"~"&Data!F:F&"~"&Data!M:M),Data!B:B,Data!E:E,Data!F:F,Data!M:O},"select * where Col7='Live'")
然后應用 vlookup
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/444216.html
標籤:谷歌表格
上一篇:如何使用AppScript將影像插入Google檔案?
下一篇:如果value==""則跳過行
