Sorted and de-duplicated lists that stay live
UNIQUE returns the rows of a range with repeats removed, in the order they first appear. SORT returns a range sorted by the columns you choose. Both spill, and both leave the original data alone.
=UNIQUE(range) =SORT(range, sort_column, is_ascending, [sort_column2, is_ascending2, ...])
sort_columncounts from the first column of the range, not from column A of the sheet. InSORT(C2:E9, 2, FALSE), 2 means column D.is_ascendingisTRUEfor A→Z and smallest first,FALSEfor Z→A and largest first.- Add more column/direction pairs to break ties: sort by department, then by salary within each department.
- Nest them:
=SORT(UNIQUE(B2:B11))gives an alphabetical list of distinct values. With only a range, SORT sorts by the first column, A→Z.
UNIQUE compares text exactly, so "acme" and "Acme" count as two different values. Clean the data with TRIM, PROPER or LOWER first if the duplicates differ only in spacing or capitals.