---
title: "COUNT function in Excel: syntax and examples | PracticeExcel"
description: "How to use COUNT in Excel and Google Sheets: count only the cells that hold numbers. Examples and a live drill."
canonical_url: "https://practiceexcelonline.com/functions/count"
locale: en
meta:
  "og:description": "How to use COUNT in Excel and Google Sheets: count only the cells that hold numbers. Examples and a live drill."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlQgZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBDT1VOVCBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogY291bnQgb25seSB0aGUgY2VsbHMgdGhhdCBob2xkIG51bWJlcnMuIEV4YW1wbGVzIGFuZCBhIGxpdmUgZHJpbGwu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~Q09VTlQodmFsdWUxLCBbdmFsdWUyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvY291bnQi%2Cs_gEihGYj0ZDaBZZYV.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "COUNT function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlQgZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBDT1VOVCBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogY291bnQgb25seSB0aGUgY2VsbHMgdGhhdCBob2xkIG51bWJlcnMuIEV4YW1wbGVzIGFuZCBhIGxpdmUgZHJpbGwu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~Q09VTlQodmFsdWUxLCBbdmFsdWUyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvY291bnQi%2Cs_gEihGYj0ZDaBZZYV.png"
---

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

# **The COUNT function**

Counts the cells that hold numbers (dates count too). Text, blanks and errors are not counted.

=

COUNT(

## **Syntax**

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

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

## **Examples**

C1=COUNT(A2:A6)

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

C1`=COUNT(<sup>1</sup>A2:A6,<sup>2</sup>10)`

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

**In plain words:** Count the numbers <sup>1</sup>in A2:A6 plus <sup>2</sup>the number 10.

## **Practice COUNT**

- [**1****Count numbers with COUNT**→](https://practiceexcelonline.com/practice/count/count-numbers)

## **Read the guide**

- [**Free Excel course online: learn Excel from your first formula to job-ready**](https://practiceexcelonline.com/learn/how-to-learn-excel)

## **Related functions**

- [**COUNTA**](https://practiceexcelonline.com/functions/counta)
- [**COUNTBLANK**](https://practiceexcelonline.com/functions/countblank)
- [**COUNTIF**](https://practiceexcelonline.com/functions/countif)

```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/count#webpage","@type":"WebPage","description":"How to use COUNT in Excel and Google Sheets: count only the cells that hold numbers. Examples and a live drill.","name":"COUNT function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/count","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/count#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/count"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/count#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":"COUNT function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/count#article","description":"How to use COUNT in Excel and Google Sheets: count only the cells that hold numbers. Examples and a live drill.","headline":"COUNT function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlQgZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBDT1VOVCBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogY291bnQgb25seSB0aGUgY2VsbHMgdGhhdCBob2xkIG51bWJlcnMuIEV4YW1wbGVzIGFuZCBhIGxpdmUgZHJpbGwu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~Q09VTlQodmFsdWUxLCBbdmFsdWUyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvY291bnQi%2Cs_gEihGYj0ZDaBZZYV.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/count#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/count#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_~Q09VTlQgZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBDT1VOVCBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogY291bnQgb25seSB0aGUgY2VsbHMgdGhhdCBob2xkIG51bWJlcnMuIEV4YW1wbGVzIGFuZCBhIGxpdmUgZHJpbGwu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~Q09VTlQodmFsdWUxLCBbdmFsdWUyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvY291bnQi%2Cs_gEihGYj0ZDaBZZYV.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlQgZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBDT1VOVCBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogY291bnQgb25seSB0aGUgY2VsbHMgdGhhdCBob2xkIG51bWJlcnMuIEV4YW1wbGVzIGFuZCBhIGxpdmUgZHJpbGwu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~Q09VTlQodmFsdWUxLCBbdmFsdWUyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvY291bnQi%2Cs_gEihGYj0ZDaBZZYV.png"}]}
```

## Sitemap

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