soldier2gud4me
soldier2gud4me

Reputation: 79

How to Sort if Index shows blank value in excel

Im looking for a way to SORT the results of INDEX if there is a blank cell it should put the blank either first or last.

=IFERROR(SORT(INDEX(EQUIPMENT!$D$10:$D$900,MATCH(0,COUNTIF($A$134:A134,EQUIPMENT!$D$10:$D$900),0))),"")

The above code gives the result as the screenshot attached.

enter image description here

Upvotes: 0

Views: 83

Answers (1)

Jos Woolley
Jos Woolley

Reputation: 9052

As per my comment:

=LET(ζ,EQUIPMENT!$D$10:$D$900,SORT(UNIQUE(FILTER(ζ,ζ<>""))))

Upvotes: 1

Related Questions