Unique Sorted List

Excel Formulas › Dynamic Arrays

Excel 365Excel 2021+Spills

To turn a messy column with repeats into a clean, alphabetized list of distinct values — perfect for a drop-down source or a report row header — wrap UNIQUE in SORT. One formula, and it updates itself as data changes.


Quick formula: to get the distinct values of A2:A10, sorted A–Z:
=SORT(UNIQUE(A2:A10))
UNIQUE removes duplicates; SORT orders the result. Both spill automatically into the cells below.

Functions used (tap for the full reference guide):

The example

A column of regions with repeats becomes a clean, sorted list.

AC
1RegionUnique, sorted
2WestEast
3EastSouth
4WestWest
5South
6East

The formula

Entered once in C2, the clean list spills down C:

=SORT(UNIQUE(A2:A6)) // → East, South, West

How it works

Two dynamic-array functions, nested:

  1. UNIQUE(A2:A6) returns each region once: West, East, South (in first-seen order).
  2. SORT(…) alphabetizes that result → East, South, West.
  3. The output spills into the cells below C2 automatically; you enter the formula only once.
  4. Because it’s a live formula, adding a new region to column A updates the list instantly — ideal as a drop-down’s source range (=C2#).

Try it: interactive demo

Live demo

Type values (commas); see the unique, sorted result.

Result:

Variations

Sorted descending

Add -1 for Z–A or largest-first:

=SORT(UNIQUE(A2:A6), , -1)

Unique values that meet a condition

Filter first — distinct products in the West region:

=SORT(UNIQUE(FILTER(A2:A6, B2:B6="West")))

Use as a dynamic drop-down source

Point Data Validation at the spill range with the # operator: =$C$2# — the list grows and shrinks on its own.

Pitfalls & errors

#SPILL! The result needs empty cells below to spill into. Clear anything blocking the column.

Blanks become a "unique" empty. A blank in the source shows up as a 0 or empty item. Filter them out: =SORT(UNIQUE(FILTER(A2:A6, A2:A6<>""))).

Excel 365 / 2021 only. UNIQUE and SORT don’t exist in Excel 2019 or older (#NAME?). Use Remove Duplicates + Sort, or a PivotTable, there.

Practice workbook

📊
Download the free Unique Sorted List practice workbook
The region column with live SORT(UNIQUE()), descending and conditional versions, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I create a unique sorted list in Excel?
Use =SORT(UNIQUE(A2:A10)). UNIQUE removes duplicates and SORT alphabetizes the result, which spills into the cells below automatically. Requires Excel 365 or 2021.
How do I make a dynamic drop-down from a unique list?
Put =SORT(UNIQUE(range)) in a cell, then point Data Validation at the spill range with the # operator, e.g. =$C$2#. The drop-down updates as the data changes.
How do I get a unique list in Excel 2019?
UNIQUE isn't available before Excel 365/2021. Use Data > Remove Duplicates on a copy of the column, then sort it, or build the list with a PivotTable.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Count unique values · Filter data with a formula · Extract matching rows

Function references: UNIQUE · SORT · FILTER