简体   繁体   English

如何阻止数组公式在 Google 表格中的排序中出现混乱

[英]How to Stop Array Formula Messing up in Sorting in Google Sheets

I am exporting the data through Array(Vlookup from different sheet by matching Id's but whenever i sort the data A to Z by using any column. ID's array formula keeps the Id as it is. Due to which data cannot be sorted.我通过Array(Vlookup通过匹配 Id 从不同的工作表导出数据,但是每当我使用任何列对数据 A 到 Z 进行排序时。ID 的数组公式保持 Id 不变。因此无法对数据进行排序。

Your help will be much appreciated.您的帮助将不胜感激。

Sheet Link 工作表链接

try in A1:在 A1 中尝试:

={"IDs"; QUERY('Data Sheet'!A2:B, "select A where A <> 0 and A is not null order by B asc")}

and B2:和 B2:

=ARRAYFORMULA(IF(A2:A="",,IFERROR(VLOOKUP(A2:A, 'Data Sheet'!$A$2:$I, {2,3,4,5,6,7,8}, 0))))

...if you want to keep vlookup ...如果你想保持 vlookup

asc can be changed to desc asc可以改为desc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM