Excel UNIQUE function

Returns the list of values without duplicates. The result spills down. In Spanish Excel it is called UNICOS.

Syntax

English Excel

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

Spanish Excel (Mexico)

=UNICOS(matriz, [por_columna], [exactamente_una_vez])

Spanish Excel (Spain, Latin America)

=UNICOS(matriz; [por_columna]; [exactamente_una_vez])

ArgumentWhat it is
arrayThe range with duplicates.
by_coloptionalFALSE (default) compares rows.
exactly_onceoptionalTRUE returns only values that appear once.

Example

In Excel 365 and 2021 a formula can return several values that "spill" into the cells below. UNIQUE(range) returns the list without duplicates. The cells it spills into must be empty, or you get #SPILL!.

=UNIQUE(B2:B11)

Common mistake

Excel 365 and 2021 only. If a cell the result must spill into is taken, you get #SPILL!.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice UNIQUE

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

UNIQUE

In Excel 365 and 2021 a formula can return several values that "spill" into the cells below. UNIQUE(range) returns the list without duplicates. The cells it spills into must be empty, or you get #SPILL!.

Example=UNIQUE(B2:B11)UNICOS = UNIQUE

In E2, get the list of regions without duplicates. You only type in E2; the rest fills in by itself.

E2
ABCDEF
1SalespersonRegionAmountRegions
2CarmenNorth18,500
3JorgeSouth4,200
4LucíaNorth3,900
5AndrésCentral21,000
6PaolaSouth17,800
7RicardoNorth6,400
8ElenaCentral5,900
9MateoNorth19,900
10SofíaWest800
11DiegoCentral4,600
12

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is UNIQUE called in Spanish?
In Spanish Excel it is UNICOS. The formula =UNIQUE(B2:B11) is written =UNICOS(B2:B11) (or with commas in Mexico).
Why does UNIQUE use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common UNIQUE mistake?
Excel 365 and 2021 only. If a cell the result must spill into is taken, you get #SPILL!.