UNIQUE
Returns the distinct values from a range or array.
- Excel: Verified match
- Google Sheets: Verified match
- Returns: Array
Examples
=UNIQUE(A1:A10) | A | |
|---|---|
| 1 | 10 |
| 2 | 20 |
| 3 | 30 |
| 4 | 40 |
| 5 | 50 |
Result 10
Syntax
UNIQUE(array, [by_col], [exactly_once]) array- range required
by_col- boolean optional defaults to
0 exactly_once- boolean optional defaults to
0
Related
ARRAY_CONSTRAINTruncates a range to at most the given rows and columns. ARRAYFORMULAEvaluates an expression across a range (this engine already spills, so it is a pass-through for sheets compatibility). ARRAYTOTEXTConverts array to text representation. BYCOLApplies lambda to each column of array. BYROWApplies lambda to each row of array. CHOOSECOLSReturns the specified columns from an array.