The UNIQUE function

Returns the distinct values of a range as a list that spills into the cells below.

Syntax

UNIQUE(array, [by_col], [exactly_once])
array
The range to take values from.
by_col (optional)
TRUE to compare columns instead of rows.
exactly_once (optional)
TRUE to return only values that appear once.

Examples

E1=UNIQUE(A2:A6)
ABCDE
1RegionProductSalesNorth
2NorthShoes500South
3SouthShoes300
4NorthBags250
5NorthShoes420
6SouthBags180
E1=COUNTA(UNIQUE(B2:B6))
ABCDE
1RegionProductSales2
2NorthShoes500
3SouthShoes300
4NorthBags250
5NorthShoes420
6SouthBags180

Practice UNIQUE

Read the guide

Related functions