Is it possible to use the AGGREGATE function to sort data without using helper columns?
I have two columns of data (numbers and letters) from A1:B5
In C1:D5 I use the AGGREGATE formula (this formula is my own variation) to list non blank values that are in column BPlease Login or Register to view this content.
IFERROR(INDEX($A$1:$B$5,AGGREGATE(15,6,ROW($A$1:$B$5)/(($B$1:$B$5<>"")),ROWS(A$1:A1))-(1-1),COLUMN()-2),"")
So I get
I was hoping I could do thisPlease Login or Register to view this content.
IFERROR(INDEX($A$1:$B$5,AGGREGATE(15,6,ROW($A$1:$B$5)/(($B$1:$B$5<>"")*($A$1:$A$5={1,2,3,4,5})),ROWS(A$1:A1))-(1-1),1),"")
dictating the order I want the output in to end up with, effectively sorting the output
Is there any way to use the AGGREGATE formula to dictate what order you want the results in and doing it within one formula?Please Login or Register to view this content.
Bookmarks