[英]Index/Match/Large Multiple Criteria
Trying to derive the top 3 highest cost fruits and return the date they were bought excluding apples and oranges.尝试得出前 3 个成本最高的水果并返回它们的购买日期,不包括苹果和橙子。 I would like to avoid using a helper column.我想避免使用辅助列。 Having issues w/ these formulas.这些公式有问题。 Not sure if you can have an array (Large w/ IFS) inside of another formula.不确定您是否可以在另一个公式中包含一个数组(带 IFS 的大数组)。 The formulas I have so far:我到目前为止的公式:
=INDEX(A:A,MATCH(LARGE(IFS(B:B,"<>Apple",B:B,"<>Orange"),1),C:C,0))
=INDEX(A:A,MATCH(LARGE(IFS(B:B,"<>Apple",B:B,"<>Orange"),2),C:C,0))
=INDEX(A:A,MATCH(LARGE(IFS(B:B,"<>Apple",B:B,"<>Orange"),3),C:C,0))
With older versions we need to use Nested Aggregates:对于旧版本,我们需要使用嵌套聚合:
=INDEX(A:A,AGGREGATE(15,7,ROW(A2:A12)/((C2:C12=AGGREGATE(14,7,C2:C12/((B2:B12<>"A")*(B2:B12<>"O")),ROW($ZZ1)))*(B2:B12<>"A")*(B2:B12<>"O")),1))
Put that in the first output cell and copy/drag it down.将它放在第一个 output 单元格中,然后复制/向下拖动它。
with Office 365 we can use TAKE/SORT/FILTER:在 Office 365 中,我们可以使用 TAKE/SORT/FILTER:
=TAKE(SORT(FILTER(A:C,(B:B<>"A")*(B:B<>"O")),3,-1),3,1)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.