我有一个表 A:T,我想编写一个方程,以便在数据更新时自动按 N 列对表进行排序,同时考虑以下条件:
我现在简单的现有方程是: =SORTBY('Rate of
Purchasing'!A3:T5000,'Rate of Purchasing'!N3:N5000,-1)
=SORTBY('Rate of Purchasing'!A3:T5000, IF(ROW('Rate of Purchasing'!N3:N5000)<=MAX(IF('Rate of Purchasing'!N3:N5000<>"", ROW('Rate of Purchasing'!N3:N5000))), 'Rate of Purchasing'!N3:N5000), -1)
(failed)
=SORT(FILTER('Rate of Purchasing'!A3:T5000, 'Rate of Purchasing'!N3:N5000<>""), ROW('Rate of Purchasing'!N3:N5000), -1)
(failed)
如果您的数据看起来像表格,请使用表格。突出显示您的表格并按
Ctrl
+T
。您的公式将是:
=SORTBY(Table1,Table1[Heading1])