Inspired from a comment in this article Unique values from multiple columns using array formulas I have now created this article. From a range spanning multiple rows and columns  I extract a unique distinct list sorted from A-Z.

unique-distinct-list-sorted-alphabetically-from-a-range

Array formula in B8:

=INDEX(tbl, SMALL(IF(SMALL(IF(COUNTIF($B$7:B7, tbl)=0, COUNTIF(tbl, "<"&tbl)+1, ""), 1)=COUNTIF(tbl, "<"&tbl)+1, ROW(tbl)-MIN(ROW(tbl))+1), 1), MATCH(MIN(IF(COUNTIF($B$7:B7, tbl)>0, "", COUNTIF(tbl, "<"&tbl)+1)), INDEX(COUNTIF(tbl, "<"&tbl)+1, SMALL(IF(SMALL(IF(COUNTIF($B$7:B7, tbl)=0, COUNTIF(tbl, "<"&tbl)+1, ""), 1)=COUNTIF(tbl, "<"&tbl)+1, ROW(tbl)-MIN(ROW(tbl))+1), 1), , 1), 0), 1) + CTRL + SHIFT + ENTER

Copy cell B8 and paste it down as far as necessary.

Recommended articles

Extract a unique distinct list sorted alphabetically removing blanks from a range

This is an answer to a question in this blog post: Extract a unique distinct list sorted from A-Z from […]

Comments(21) Filed in category: Excel

Unique distinct values from multiple columns using array formula

Question: I have cell values spanning over several columns and I want to create a unique list from that range. […]

Comments(23) Filed in category: Excel, Unique distinct values

Extract duplicates from a range using excel array formula

Overview Inspired by a comment in this post Unique values from multiple columns using array formulas, I  created an array […]

Comments(0) Filed in category: Duplicate values, Excel

Named ranges

tbl (B2:E5)
What is named ranges?

How to implement array formula to your workbook

Change the named range. If your list starts at, for example, F3. Change $B$7:B7 in the above formulas to F2:$F$2.

Download excel sample file for this tutorial

extract-a-unique-distinct-list-sorted-A-Z-from-a-range.xls
(Excel 97-2003 Workbook *.xls)