
Originally Posted by
JBeaucaire
Two formulas together will do this, and both are array formulas. Let's assume that list is in column A.
Over in another column, let's use M, enter this formula in M1:
=INDEX($A$1:$A$1000,MATCH(0,COUNTIF($A$1:$A$1000,"<"&$A$1:$A$1000),0))
...and press CTRL-SHIFT-ENTER to activate an array in that cell, ENTER alone will not work.
Then in M2 enter this array formula:
=IF(COUNTIF($A$1:$A$1000,">"&M1),INDEX($A$1:$A$1000,MATCH(COUNTIF($A$1:$A$1000,"<="&M1),COUNTIF($A$1:$A$1000,"<"&$A$1:$A$1000),0)),"")
...and press CTRL-SHIFT-ENTER to activate an array in that cell, ENTER alone will not work.
Now, copy that second formula down as many cells as necessary to get the full list to appear, and maybe some extras for good measure.
NOTE: Side effect will also be the list created will be alphabetized.
Bookmarks