我有這樣的資料:
| 教授 | 日期1 | 日期2 | 日期3 | 日期4 | 日期5 |
|---|---|---|---|---|---|
| 日期1 | 日期2 | ||||
| 教授1 | 關稅1 | 關稅2 | |||
| 日期1 | |||||
| 教授2 | 關稅3 | ||||
| 日期1 | 日期2 | 日期3 | 日期4 | 日期5 | |
| 教授3 | 關稅4 | 關稅5 | 關稅6 | 關稅7 | 關稅8 |
我怎樣才能用一個陣列公式得到這個答案(每個教授的最新關稅)
| 教授 | 關稅 |
|---|---|
| 教授1 | 關稅2 |
| 教授2 | 關稅3 |
| 教授3 | 關稅8 |
我嘗試通過 2 個步驟解決該問題:
獲取最后一列
=query(query(arrayformula(split(flatten(A1:A&"~"&B1:F&"~"&column(B1:F1)),"~",1,0)),"where Col1 is not null and Col2 is not null"),"select Col1,max(Col3) group by Col1 label max(Col3) ''")
然后檢索值
=offset($A$1,match(H1,A:A,0)-1,I1-1)

在一個陣列公式中是否有解決方案?
uj5u.com熱心網友回復:
看看這是否有幫助
=INDEX(regexextract(trim(transpose(query(transpose(filter(A:F, len(A:A))),,9^9))), "^(.*?)\s.*?([^\s] $)"))

如果 A:F 范圍內的值中有空格,則必須將其替換為另一個字符(并進行另一個替換以重新添加這些空格)。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/455327.html
標籤:谷歌表格
