---
title: "COUNTBLANK function in Excel: syntax and examples | PracticeExcel"
description: "How to use COUNTBLANK in Excel and Google Sheets: count the missing values in a range."
canonical_url: "https://practiceexcelonline.com/functions/countblank"
locale: en
meta:
  "og:description": "How to use COUNTBLANK in Excel and Google Sheets: count the missing values in a range."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRCTEFOSyBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBDT1VOVEJMQU5LIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgbWlzc2luZyB2YWx1ZXMgaW4gYSByYW5nZS4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_COUNTBLANK(range)%2Cp_Ii9mdW5jdGlvbnMvY291bnRibGFuayI%2Cs_Ksy-aW6q8LiZ3K7u.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "COUNTBLANK function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRCTEFOSyBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBDT1VOVEJMQU5LIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgbWlzc2luZyB2YWx1ZXMgaW4gYSByYW5nZS4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_COUNTBLANK(range)%2Cp_Ii9mdW5jdGlvbnMvY291bnRibGFuayI%2Cs_Ksy-aW6q8LiZ3K7u.png"
---

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

# **The COUNTBLANK function**

Counts the empty cells in a range. A formula that returns "" also counts as empty.

=

COUNTBLANK(

## **Syntax**

```
COUNTBLANK(range)
```

<dl><dt>**range **</dt>
<dd>The cells to check.</dd></dl>

## **Examples**

C1=COUNTBLANK(A2:A6)

|  | A | B | C |
| --- | --- | --- | --- |
| 1 | Units |  | **1** |
| 2 | 4 |  | |
| 3 | n/a |  | |
| 4 | 7 |  | |
| 5 |  |  | |
| 6 | 2 |  | |

C1=COUNTBLANK(A1:A8)

|  | A | B | C |
| --- | --- | --- | --- |
| 1 | Units |  | **3** |
| 2 | 4 |  | |
| 3 | n/a |  | |
| 4 | 7 |  | |
| 5 |  |  | |
| 6 | 2 |  | |

## **Practice COUNTBLANK**

- [**1****Count empty cells with COUNTBLANK**→](https://practiceexcelonline.com/practice/count/countblank-empty-cells)

## **Related functions**

- [**COUNTA**](https://practiceexcelonline.com/functions/counta)
- [**COUNT**](https://practiceexcelonline.com/functions/count)
- [**ISBLANK**](https://practiceexcelonline.com/functions/isblank)

```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/countblank#webpage","@type":"WebPage","description":"How to use COUNTBLANK in Excel and Google Sheets: count the missing values in a range.","name":"COUNTBLANK function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/countblank","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/countblank#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/countblank"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/countblank#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":"COUNTBLANK function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/countblank#article","description":"How to use COUNTBLANK in Excel and Google Sheets: count the missing values in a range.","headline":"COUNTBLANK function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRCTEFOSyBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBDT1VOVEJMQU5LIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgbWlzc2luZyB2YWx1ZXMgaW4gYSByYW5nZS4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_COUNTBLANK(range)%2Cp_Ii9mdW5jdGlvbnMvY291bnRibGFuayI%2Cs_Ksy-aW6q8LiZ3K7u.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/countblank#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/countblank#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_~Q09VTlRCTEFOSyBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBDT1VOVEJMQU5LIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgbWlzc2luZyB2YWx1ZXMgaW4gYSByYW5nZS4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_COUNTBLANK(range)%2Cp_Ii9mdW5jdGlvbnMvY291bnRibGFuayI%2Cs_Ksy-aW6q8LiZ3K7u.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRCTEFOSyBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBDT1VOVEJMQU5LIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgbWlzc2luZyB2YWx1ZXMgaW4gYSByYW5nZS4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_COUNTBLANK(range)%2Cp_Ii9mdW5jdGlvbnMvY291bnRibGFuayI%2Cs_Ksy-aW6q8LiZ3K7u.png"}]}
```

## Sitemap

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