Google Sheets UNIQUE: Extract Unique Distinct Values & Deduplicate
UNIQUE extracts distinct values from a column or table, stripping duplicates automatically. When source records change, unique list recalculates in real time.
=UNIQUE(range, [by_column], [exactly_once])Formula Parameters & Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
| range | Range | Required | The input range to deduplicate. |
| by_column | Boolean | Optional | FALSE = Filter by rows (default), TRUE = Filter by columns. |
| exactly_once | Boolean | Optional | FALSE = Return distinct items (default), TRUE = Return only items appearing exactly once. |
Real-World Spreadsheet Examples
Explore verified operational formulas used in enterprise reporting and database workflows:
Example 1: Extract Unique Customer List from Orders Table
=SORT(UNIQUE(Orders!B2:B))Example 2: Isolate Multi-Column Unique Key Combinations
=UNIQUE(A2:C500)Example 3: Find Truly Unique One-Time Buyers
=UNIQUE(Orders!B2:B, FALSE, TRUE)Common Errors & Solutions
Performance Pro Tips
- Feed output of UNIQUE into Data Validation dropdown lists to provide dynamic auto-updating choices.
Frequently Asked Questions
Does UNIQUE recalculate automatically when data changes?
Yes. Google Sheets recalculates all dependent formulas immediately whenever referenced input cells are modified.
Is this formula compatible with Microsoft Excel?
Modern functions like XLOOKUP, FILTER, UNIQUE, SORT, and LET are natively supported in Excel 365. However, QUERY is unique to Google Sheets and uses the Google Visualization API syntax.
Related Google Sheets Formulas
QUERY
The QUERY function is Google Sheets' most versatile formula, executing a SQL-like Google Visualization API Query Language string across spreadsheet tables to filter, aggregate, group, pivot, and sort data in a single formula.
Data TransformationARRAYFORMULA
ARRAYFORMULA enables single spreadsheet formulas to output an entire matrix or column of calculated results automatically. When new rows are entered, ARRAYFORMULA calculates them instantly without requiring manual formula dragging.
Data TransformationFILTER
FILTER dynamically outputs only the rows or columns from a source range that satisfy one or more logical conditions. As source data updates, filtered results re-calculate automatically.