UNIQUE
Dynamic arraysMicrosoft 365Return the distinct values from a range.
Syntax
UNIQUE(array, [by_col], [exactly_once])
Arguments
- array
- The source range.
- by_coloptional
- TRUE to de-dupe columns instead of rows.
- exactly_onceoptional
- TRUE returns only values that appear exactly once.
Examples
=UNIQUE(Region)
→ the distinct regions
=SORT(UNIQUE(FILTER(City, Region=A2)))
→ a dependent drop-down source
Related functions
More Dynamic arrays functions
Syntax follows Microsoft’s documentation. Examples are written to be pasted into a cell and checked. Argument separators may be ; in your locale. The AI explainer runs on a free community model — verify anything important.