---
title: "COUNTUNIQUE in Google Sheets: syntax and examples | PracticeExcel"
description: "How to use COUNTUNIQUE in Google Sheets: count the different values in a column with one formula."
canonical_url: "https://practiceexcelonline.com/sheets/functions/countunique"
locale: en
meta:
  "og:description": "How to use COUNTUNIQUE in Google Sheets: count the different values in a column with one formula."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRVTklRVUUgaW4gR29vZ2xlIFNoZWV0czogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBDT1VOVFVOSVFVRSBpbiBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgZGlmZmVyZW50IHZhbHVlcyBpbiBhIGNvbHVtbiB3aXRoIG9uZSBmb3JtdWxhLg%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~Q09VTlRVTklRVUUodmFsdWUxLCBbdmFsdWUyXSwgLi4uKQ%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2NvdW50dW5pcXVlIg%2Cs_e-vAuejcZojOB0wv.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "COUNTUNIQUE in Google Sheets: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRVTklRVUUgaW4gR29vZ2xlIFNoZWV0czogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBDT1VOVFVOSVFVRSBpbiBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgZGlmZmVyZW50IHZhbHVlcyBpbiBhIGNvbHVtbiB3aXRoIG9uZSBmb3JtdWxhLg%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~Q09VTlRVTklRVUUodmFsdWUxLCBbdmFsdWUyXSwgLi4uKQ%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2NvdW50dW5pcXVlIg%2Cs_e-vAuejcZojOB0wv.png"
---

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

# **COUNTUNIQUE in Google Sheets**

Counts how many different values a range holds. Empty cells are not counted.

=

COUNTUNIQUE(

## **Syntax**

```
COUNTUNIQUE(value1, [value2], ...)
```

<dl><dt>**value1 **</dt>
<dd>The first range or value.</dd>
<dt>**value2 **(optional)</dt>
<dd>More ranges or values.</dd></dl>

## **Examples**

E1=COUNTUNIQUE(A2:A6)

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Rep | Amount |  | **3** |
| 2 | North | Ann | 120 |  | |
| 3 | South | Bo | 80 |  | |
| 4 | North | Cy | 200 |  | |
| 5 | West | Di | 50 |  | |
| 6 | South | Ed | 150 |  | |

E1=COUNTUNIQUE(B2:B6)

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Rep | Amount |  | **5** |
| 2 | North | Ann | 120 |  | |
| 3 | South | Bo | 80 |  | |
| 4 | North | Cy | 200 |  | |
| 5 | West | Di | 50 |  | |
| 6 | South | Ed | 150 |  | |

## **Related functions**

- [**COUNTA**](https://practiceexcelonline.com/functions/counta)
- [**COUNTIF**](https://practiceexcelonline.com/sheets/functions/countif)
- [**UNIQUE**](https://practiceexcelonline.com/functions/unique)

```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/sheets/functions/countunique#webpage","@type":"WebPage","description":"How to use COUNTUNIQUE in Google Sheets: count the different values in a column with one formula.","name":"COUNTUNIQUE in Google Sheets: syntax and examples","url":"https://practiceexcelonline.com/sheets/functions/countunique","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/functions/countunique#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/functions/countunique"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/functions/countunique#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://practiceexcelonline.com/sheets","position":2},{"@type":"ListItem","name":"COUNTUNIQUE in Google Sheets: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/sheets/functions/countunique#article","description":"How to use COUNTUNIQUE in Google Sheets: count the different values in a column with one formula.","headline":"COUNTUNIQUE in Google Sheets: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRVTklRVUUgaW4gR29vZ2xlIFNoZWV0czogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBDT1VOVFVOSVFVRSBpbiBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgZGlmZmVyZW50IHZhbHVlcyBpbiBhIGNvbHVtbiB3aXRoIG9uZSBmb3JtdWxhLg%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~Q09VTlRVTklRVUUodmFsdWUxLCBbdmFsdWUyXSwgLi4uKQ%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2NvdW50dW5pcXVlIg%2Cs_e-vAuejcZojOB0wv.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/sheets/functions/countunique#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/sheets/functions/countunique#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_~Q09VTlRVTklRVUUgaW4gR29vZ2xlIFNoZWV0czogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBDT1VOVFVOSVFVRSBpbiBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgZGlmZmVyZW50IHZhbHVlcyBpbiBhIGNvbHVtbiB3aXRoIG9uZSBmb3JtdWxhLg%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~Q09VTlRVTklRVUUodmFsdWUxLCBbdmFsdWUyXSwgLi4uKQ%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2NvdW50dW5pcXVlIg%2Cs_e-vAuejcZojOB0wv.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRVTklRVUUgaW4gR29vZ2xlIFNoZWV0czogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBDT1VOVFVOSVFVRSBpbiBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgZGlmZmVyZW50IHZhbHVlcyBpbiBhIGNvbHVtbiB3aXRoIG9uZSBmb3JtdWxhLg%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~Q09VTlRVTklRVUUodmFsdWUxLCBbdmFsdWUyXSwgLi4uKQ%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2NvdW50dW5pcXVlIg%2Cs_e-vAuejcZojOB0wv.png"}]}
```

## Sitemap

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