Skip to content
Blog/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

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
Project Management

Project Tracker

Track tasks, owners, priorities, due dates, and blockers in one delivery board. Group work by stream, review progress, and keep next steps visible.

Open template
Project Management

Project Tracker for Marketing Teams

Track campaign work, owners, deadlines, approvals, and blockers in one free marketing project tracker spreadsheet for Excel and Google Sheets.

Open template
Project Management

Project Tracker for Client Work

Track client deliverables, owners, due dates, approvals, and blockers in one free project tracker spreadsheet built for service teams.

Open template
Project Management

Project Tracker for Agencies

Track agency deliverables, client approvals, owners, deadlines, and blockers in one free project tracker spreadsheet built for service teams.

Open template
Project Management

OKR Tracker

Track company and team OKRs in one quarterly scorecard. Keep objective scores, KR progress, and leadership notes visible without needing dedicated OKR software.

Open template
Project Management

OKR Tracker for Startups

Track startup objectives, key results, owners, progress, and confidence in one free OKR spreadsheet built for quarterly planning and review.

Open template
Project Management

OKR Tracker for Marketing Teams

Track campaign, pipeline, content, and growth OKRs in one free marketing OKR spreadsheet built for quarterly planning and weekly review.

Open template
HR

Employee Schedule

Plan a weekly staff rota with day-by-day shifts, weekly hours, overtime flags, and a manager snapshot block. Free template for teams, shops, and clinics.

Open template
HR

Employee Schedule for Restaurants

Plan restaurant shifts, opens, closes, stations, and coverage in one free staff schedule spreadsheet built for restaurants and cafes.

Open template
HR

Employee Schedule for Retail

Plan retail shifts, store coverage, opens, closes, and weekend staffing in one free employee schedule spreadsheet built for store teams.

Open template