Excel Function

UNIQUE

Returns unique values from a range.

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

Arguments

array

Required

Specify a reference range. You can drag or click start/end cells.

by_col

Optional

Specify TRUE or FALSE.

exactly_once

Optional

Specify TRUE or FALSE.

Practice Preview

Use UNIQUE to return the distinct values from Category in column B. You can set ranges by dragging from the start cell to the end cell in the same argument field.

Example Table

#
AProduct ID
BCategory
CProduct Name
DSales
2P001FoodApple1200
3P002FoodBanana980
4P003StationeryNotebook450
5P004StationeryPen300
6P005FoodGrapes1500
7P006StationeryRuler250
8

How to Use (Formula)

=UNIQUE(B2:B7, FALSE, FALSE)

Result

Food, Stationery

Practice This Function

UNIQUE FAQ

How do I use UNIQUE in Excel?

Use UNIQUE when you want to return unique values only. Enter Target range, Compare by column, Exactly once only in that order, then add optional arguments when needed.

Where can I practice UNIQUE?

Use the "Start Function Practice" button to jump straight into UNIQUE drills.

What arguments does UNIQUE use?

The main arguments are Target range, Compare by column, Exactly once only. Start with the required ones, then add optional arguments if needed.