简体   繁体   English

如何更改我的多标准索引匹配公式,使其对最接近今天的结果进行排序?

[英]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:如何以适用于以下两个因素的方式编写数组公式:

  1. Results give me the names of sales that have either TRUE OR FALSE next to it in a different column/sheet.结果给我的销售名称在不同的列/表中旁边有 TRUE 或 FALSE。
  2. Results are sorted chronologically based on the date that is connected to each sale.结果根据与每次销售相关的日期按时间顺序排序 Each sale has a different date next to it.每个销售旁边都有不同的日期。 This can be found in the same sheet as where the "TRUE OR FALSE" result is displayed.这可以在显示“真或假”结果的同一张表中找到。 Column with the dates is called "AY:AY".带有日期的列称为“AY:AY”。 I use an indirect formula to target the correct sheet within the spreadsheet.我使用间接公式来定位电子表格中的正确工作表。

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.

相关问题 发出多标准INDEX MATCH公式 - Issue with a multiple criteria INDEX MATCH formula 使用 VBA,有没有办法根据两列的条件查找单元格(类似于索引匹配公式) - Using VBA, is there a way to look up a cell based on criteria for two columns (similar to Index Match formula) 将INDEX MATCH公式更改为EXCEL中的数组公式 - Change INDEX MATCH formula to an array formula in EXCEL 如何比较多个数组并确定最接近的匹配项? - How do I compare multiple arrays and identify the closest match? 使用数组公式将具有多个条件的索引匹配转换为VBA - Index Match with multiple criteria conversion to VBA using an array formula 我如何制作一个按升序对我的列表进行排序的按钮(java swing)? - how do i make a button that sorts my list in an ascending order(java swing)? EXCEL:使用索引/匹配创建具有多个结果的数组公式 - EXCEL: Create Array Formula out of INDEX/MATCH with multiple results 如何使此匹配/索引工作表功能作为数组公式? - How to make this match/index worksheetfunction as array formula? 如何仅将Mysqli绑定结果之一放入数组以使用in_array()函数进行匹配? - How do I place just one of my Mysqli bind results into an array to use the in_array() function for a match? 索引/符合三个标准 - Index/Match with three criteria
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM