New: ready-to-use spreadsheet templatesExplore the collection  →
Home/Formulas/UNIQUE
ARRAY & DATA · GOOGLE SHEETS

UNIQUE
return unique rows from a range.

Use UNIQUE to remove repeated values from a list. This guide shows the exact structure, a working example and the mistakes most likely to break it.

JosephineVerified by JosephineReviewed July 25, 2026
THE FORMULA=UNIQUE(range, [by_column], [exactly_once])
A

rangesource values

B

by_columncompare columns instead of rows

C

exactly_oncereturn values appearing once

TRY IT YOURSELF

Change the sheet.
Watch the answer update.

Edit any highlighted cell below. The example recalculates immediately.

LIVE PLAYGROUND=UNIQUE(A2:A20)
fx=UNIQUE(A2:A20)
A · LABELB · VALUE
2
3
4
5
RESULT3 unique valuesUpdates live

Try changing a value above. This example runs entirely in your browser.

IN PLAIN ENGLISH

How the formula
thinks.

  1. 01

    rangesource values

  2. 02

    by_columncompare columns instead of rows

  3. 03

    exactly_oncereturn values appearing once

COMMON FIXES

When UNIQUE
doesn’t behave.

WRONG RESULT

Wrong result

Check that every range starts and ends on the same rows, and that numbers are stored as numbers.

FORMULA PARSE ERROR

Formula parse error

Check commas, quotation marks and closing parentheses. Your locale may use semicolons instead of commas.

UNEXPECTED BLANKS

Unexpected blanks

Test the source cells for hidden spaces, empty strings and inconsistent data types.

fxNeed help with UNIQUE?Fix my formula →