Lookup and referenceExcel 2021

UNIQUE

List distinct entries from an array, with an option for entries appearing exactly once.

Syntax

=UNIQUE(array, [by_col], [exactly_once])

Worked example

Keep one copy of each region in first-appearance order.

=UNIQUE({"West";"East";"West"})

Result West; East (two rows)

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor