---
title: "UNIQUE function in Excel: syntax and examples | PracticeExcel"
description: "How to use UNIQUE in Excel 365 and Google Sheets: a list without duplicates that updates by itself."
canonical_url: "https://practiceexcelonline.com/functions/unique"
locale: en
meta:
  "og:description": "How to use UNIQUE in Excel 365 and Google Sheets: a list without duplicates that updates by itself."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VU5JUVVFIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBVTklRVUUgaW4gRXhjZWwgMzY1IGFuZCBHb29nbGUgU2hlZXRzOiBhIGxpc3Qgd2l0aG91dCBkdXBsaWNhdGVzIHRoYXQgdXBkYXRlcyBieSBpdHNlbGYu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VU5JUVVFKGFycmF5LCBbYnlfY29sXSwgW2V4YWN0bHlfb25jZV0p%2Cp_Ii9mdW5jdGlvbnMvdW5pcXVlIg%2Cs_ed0qmUfPPjiZ0vkQ.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "UNIQUE function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VU5JUVVFIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBVTklRVUUgaW4gRXhjZWwgMzY1IGFuZCBHb29nbGUgU2hlZXRzOiBhIGxpc3Qgd2l0aG91dCBkdXBsaWNhdGVzIHRoYXQgdXBkYXRlcyBieSBpdHNlbGYu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VU5JUVVFKGFycmF5LCBbYnlfY29sXSwgW2V4YWN0bHlfb25jZV0p%2Cp_Ii9mdW5jdGlvbnMvdW5pcXVlIg%2Cs_ed0qmUfPPjiZ0vkQ.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **The UNIQUE function**

Returns the distinct values of a range as a list that spills into the cells below.

=

UNIQUE(

## **Syntax**

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

<dl><dt>**array **</dt>
<dd>The range to take values from.</dd>
<dt>**by_col **(optional)</dt>
<dd>TRUE to compare columns instead of rows.</dd>
<dt>**exactly_once **(optional)</dt>
<dd>TRUE to return only values that appear once.</dd></dl>

## **Examples**

E1=UNIQUE(A2:A6)

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | **North** |
| 2 | North | Shoes | 500 |  | **South** |
| 3 | South | Shoes | 300 |  | |
| 4 | North | Bags | 250 |  | |
| 5 | North | Shoes | 420 |  | |
| 6 | South | Bags | 180 |  | |

E1=COUNTA(UNIQUE(B2:B6))

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | **2** |
| 2 | North | Shoes | 500 |  | |
| 3 | South | Shoes | 300 |  | |
| 4 | North | Bags | 250 |  | |
| 5 | North | Shoes | 420 |  | |
| 6 | South | Bags | 180 |  | |

## **Practice UNIQUE**

- [**1****List each customer once with UNIQUE**→](https://practiceexcelonline.com/practice/sort-and-unique/unique-function)
- [**2****A sorted list without duplicates**→](https://practiceexcelonline.com/practice/sort-and-unique/sort-unique-list)
- [**3****A drop-down source without repeats**→](https://practiceexcelonline.com/practice/data-validation/drop-down-source-without-repeats)

## **Read the guide**

- [**Pivot tables explained, and the formulas that do the same job**](https://practiceexcelonline.com/learn/pivot-tables)
- [**How to clean data in Excel with formulas**](https://practiceexcelonline.com/learn/clean-data-in-excel)
- [**Google Sheets vs Excel: what is the same, what is different, and how to switch**](https://practiceexcelonline.com/learn/google-sheets-vs-excel)
- [**How to create a drop-down list in Excel, and make it update itself**](https://practiceexcelonline.com/learn/drop-down-list-excel)

## **Related functions**

- [**FILTER**](https://practiceexcelonline.com/functions/filter)
- [**COUNTA**](https://practiceexcelonline.com/functions/counta)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/functions/unique#webpage","@type":"WebPage","description":"How to use UNIQUE in Excel 365 and Google Sheets: a list without duplicates that updates by itself.","name":"UNIQUE function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/unique","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/unique#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/unique"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/unique#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"UNIQUE function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/unique#article","description":"How to use UNIQUE in Excel 365 and Google Sheets: a list without duplicates that updates by itself.","headline":"UNIQUE function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VU5JUVVFIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBVTklRVUUgaW4gRXhjZWwgMzY1IGFuZCBHb29nbGUgU2hlZXRzOiBhIGxpc3Qgd2l0aG91dCBkdXBsaWNhdGVzIHRoYXQgdXBkYXRlcyBieSBpdHNlbGYu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VU5JUVVFKGFycmF5LCBbYnlfY29sXSwgW2V4YWN0bHlfb25jZV0p%2Cp_Ii9mdW5jdGlvbnMvdW5pcXVlIg%2Cs_ed0qmUfPPjiZ0vkQ.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/unique#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/unique#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VU5JUVVFIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBVTklRVUUgaW4gRXhjZWwgMzY1IGFuZCBHb29nbGUgU2hlZXRzOiBhIGxpc3Qgd2l0aG91dCBkdXBsaWNhdGVzIHRoYXQgdXBkYXRlcyBieSBpdHNlbGYu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VU5JUVVFKGFycmF5LCBbYnlfY29sXSwgW2V4YWN0bHlfb25jZV0p%2Cp_Ii9mdW5jdGlvbnMvdW5pcXVlIg%2Cs_ed0qmUfPPjiZ0vkQ.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VU5JUVVFIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBVTklRVUUgaW4gRXhjZWwgMzY1IGFuZCBHb29nbGUgU2hlZXRzOiBhIGxpc3Qgd2l0aG91dCBkdXBsaWNhdGVzIHRoYXQgdXBkYXRlcyBieSBpdHNlbGYu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VU5JUVVFKGFycmF5LCBbYnlfY29sXSwgW2V4YWN0bHlfb25jZV0p%2Cp_Ii9mdW5jdGlvbnMvdW5pcXVlIg%2Cs_ed0qmUfPPjiZ0vkQ.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
