Excel Function

Excel UNIQUE function

Get a clean list of distinct values from any column — one formula, no helper columns, no manual work.

UNIQUE extracts every distinct value from a range and returns them as a spilled list. Add a new item to the source data and the UNIQUE list updates automatically — no refresh needed.

Syntax

UNIQUE(array, [by_col], [exactly_once])
ArgumentWhat it means
array requiredThe range to deduplicate. Can be a single column, multiple columns, or a row.
by_col optionalFALSE (default) = unique rows. TRUE = unique columns.
exactly_once optionalFALSE (default) = all distinct values. TRUE = only values that appear exactly once (genuinely unique, not just distinct).

Basic example

Column A contains a list of countries with duplicates. Get a clean unique list:

=UNIQUE(A2:A100)

Results spill downward automatically. If new countries are added to column A, the list updates instantly.

Unique combinations across multiple columns

To find unique Region + Product combinations:

=UNIQUE(A2:B100)

UNIQUE treats each row as a unit — it returns rows where the combination of all columns is distinct.

Values that appear exactly once

Find items with no duplicates at all (appeared only once in the source):

=UNIQUE(A2:A100, FALSE, TRUE)
💡 Combine with SORT for a clean dropdown source

=SORT(UNIQUE(A2:A100)) gives you a sorted, deduplicated list — perfect as the source for a Data Validation dropdown that updates itself automatically.

What is the difference between UNIQUE and Remove Duplicates?
Remove Duplicates permanently deletes rows from your data. UNIQUE creates a formula output that leaves your original data untouched and updates dynamically.
Does UNIQUE work on text as well as numbers?
Yes — text, numbers, dates, and mixed ranges all work. It treats "Apple" and "apple" as different values (case-sensitive comparison).
What if I want to count how many unique values there are?
Wrap it in COUNTA: =COUNTA(UNIQUE(A2:A100))

Practice UNIQUE for real

Type it in a live spreadsheet, get instant feedback. No videos, no downloads.

Start practising free →