用例
根据其他工作表对公式排序,但在最后一项后排除空值。空值在顶部排序,创建一整堆空白空间,然后是我关心的数据。
=SORT('other sheet'!A1:C36,'other sheet'!D1:D36,FALSE)
问题
每次我在“其他工作表”中添加/删除一行时,必须手动更新“36”。
可能的解决方案是:
在Google工作表中,将列中最后一个非空单元格的行号作为[最后一行]。
=SORT('other sheet'!A1:C[last row],'other sheet'!D1:D[last row],FALSE)
我试过什么
查找(“”,'其他工作表'!答:
Get the last non-empty cell in a column in Google Sheets
-
返回值而不是地址。未能在行中找到该值,但效率不高。如果在多个地方发现了值,又该怎么办?
**示例speadsheet**
https://docs.google.com/spreadsheets/d/1bqiVe3pBYDJFtrO4EysSKTDq17lzY5r2b8sPV-KnTdI/edit#gid=0