[英]How do I change my multi criteria Index Match formula in such a way that it sorts results closest to today?
How can do I write an array formula in such a way that both following factors apply:如何以适用于以下两个因素的方式编写数组公式:
I currently only have the first criteria implemented, don't know how to do the 2nd one.我目前只实施了第一个标准,不知道如何执行第二个标准。
Since the raw data is not ordered I need this to happen when I use the Index Match Array formula.由于原始数据未排序,因此我需要在使用索引匹配数组公式时发生这种情况。 So far I have this formula in my Google Sheets spreadsheet.到目前为止,我的 Google 表格电子表格中有这个公式。
=ArrayFormula(iferror(index(indirect("'"&$B$5&" 2023':c;c"):small(if(TRUE=indirect("'"&$B$5&" 2023';ca:ca");row(indirect("'"&$B$5&" 2023':ca;ca"))-row(indirect("'"&$B$5&" 2023'!$ca$1"))+1);row(1:1)));""))
I know I could use the Index Array formula below with multiple criteria, but don't know how to implement the date component.我知道我可以将下面的索引数组公式与多个条件一起使用,但不知道如何实现日期组件。
INDEX(indirect("'"&$B$5&" 2023':c;c");SMALL(IF(COUNTIF(_______)*COUNTIF("true": indirect("'"&$B$5&" 2023';CA:CA"): ROW(indirect("'"&$B$5&" 2023';A;CA"))-MIN(ROW(indirect("'"&$B$5&" 2023'!A:CA"))+1); ROW(indirect("'"&$B$5&" 2023'!A1));COLUMN(indirect("'"&$B$5&" 2023'!A1))
Thanks in advance.提前致谢。
A query like this could help?这样的查询会有帮助吗?
=QUERY(INDIRECT("'"&$B$5&" 2023'!C:CA"),"SELECT C,AY WHERE CA = TRUE order by AY")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.