Returns the unique values from a given range or array of values.
Syntax
range: The array of values or cell range to evaluate. Eg., A2:A16
col: Indicates how to compare the given values. Defaults to FALSE if omitted.
TRUE - Compares values by column
FALSE - Compares values by row.
occurs_once: Logical expression or value to return the values based on occurrence. Defaults to FALSE if omitted.
TRUE - Returns the values that occur only once in the given list.
Remarks
The result spills into the adjacent cells, based on the returned values.
Examples
|
Formula |
|
=UNIQUE(A2:A16) |
|
=UNIQUE(A2:A16;TRUE;TRUE) |
|
=UNIQUE(A2:A16;FALSE;TRUE) |
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|