Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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. 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. 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))

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

=INDEX(A:A,MATCH(LARGE(IFS(B:B,"<>Apple",B:B,"<>Orange"),3),C:C,0))

enter image description here

>Solution :

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.

enter image description here

with Office 365 we can use Take/SORT/FILTER:

=TAKE(SORT(FILTER(A:C,(B:B<>"A")*(B:B<>"O")),3,-1),3,1)

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading