Skip to content
getgriddy.ai/blog/how-to-use-unique-function-in-excel
Excel

How to Use the UNIQUE Function in Excel

UNIQUE returns distinct values or rows from a range. Here's the syntax, common examples, and how to use it to build cleaner review views from messy spreadsheet data.

·5 min read

Reviewed by Griddy

Updated for current Excel and Google Sheets workflows, with examples chosen to map back to real spreadsheet tasks rather than abstract formula syntax.

UNIQUE returns distinct values or distinct rows from a range. Use it when you want a live de-duplicated list without manually removing duplicates from the source data.

That makes it useful for owner lists, category lists, project tags, client names, and any workflow where one messy table needs a cleaner derived view.

The syntax

fx
=UNIQUE(array, [by_col], [exactly_once])
  • array — the range Excel should inspect
  • [by_col] — optional; use TRUE to compare columns instead of rows
  • [exactly_once] — optional; use TRUE to return only values that appear once

Most of the time, you only need the first argument.

Basic example

If column B contains task owners and you want a distinct owner list:

fx
=UNIQUE(B2:B100)

Excel spills a clean list of each owner once.

That is a fast way to build review dropdowns or summary sections from a project tracker template.

Return unique rows instead of one column

If columns A:C contain task name, owner, and status:

fx
=UNIQUE(A2:C100)

Excel returns distinct rows across the full three-column range.

That is useful when you want to collapse repeated records into one live result set without changing the source table.

Return values that appear exactly once

If you only want values that occur one time:

fx
=UNIQUE(B2:B100, FALSE, TRUE)

That excludes repeated values and returns only entries that appear exactly once.

This is helpful when you need to identify one-off owners, categories, or tags instead of a general distinct list.

UNIQUE vs Remove Duplicates

UNIQUERemove Duplicates
Updates automaticallyYesNo
Changes the source dataNoYes
Good for reusable viewsYesNo
Good for one-time cleanupSometimesYes

If you need a live derived list, use UNIQUE.

If you want to permanently clean the source data one time, the Remove Duplicates tool may be better.

Common UNIQUE mistakes

MistakeWhat happensFix
Source range has blanks you did not expectBlank rows appear in the outputFilter or clean the source data first
Spill range is blockedExcel returns #SPILL!Clear the cells below or beside the formula
Expecting UNIQUE to sort the outputResults come back in source orderWrap with SORT() if you want a sorted list
Using UNIQUE in older Excel versionsFunction is unavailableUse a modern Excel version with dynamic arrays

TIP

If you want a clean sorted owner list, combine the functions: =SORT(UNIQUE(B2:B100)).

Where UNIQUE fits best

UNIQUE is most useful when the workbook needs lightweight derived views such as:

It is one of the easiest ways to make a messy operating sheet more reusable.

The Griddy way

UNIQUE is easy once you know the syntax, but people still waste time deciding which range to use, why the spill is blocked, or whether they should be de-duplicating rows or just one column.

"Pull a distinct list of project owners from this tracker, sort it alphabetically, and ignore any blank rows"

Griddy can build the formula chain and place the result into the summary view that needs it.

Skip the manual work

Describe it. Griddy does it.

Instead of writing this formula yourself, just tell Griddy what you need in plain English. Works in Excel and Google Sheets.

Use this on real templates

Build cleaner summary views from messy operating data

UNIQUE is a simple way to generate distinct owner, category, or tag lists from live planning and operations sheets without touching the source data.

Project Management