---
title: "COUNTA function in Excel: syntax and examples | PracticeExcel"
description: "How to use COUNTA in Excel and Google Sheets: count every cell that is not empty."
canonical_url: "https://practiceexcelonline.com/functions/counta"
locale: en
meta:
  "og:description": "How to use COUNTA in Excel and Google Sheets: count every cell that is not empty."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRBIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBDT1VOVEEgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGNvdW50IGV2ZXJ5IGNlbGwgdGhhdCBpcyBub3QgZW1wdHku%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~Q09VTlRBKHZhbHVlMSwgW3ZhbHVlMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvY291bnRhIg%2Cs_jqGniWiomc-ooAN4.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "COUNTA function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRBIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBDT1VOVEEgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGNvdW50IGV2ZXJ5IGNlbGwgdGhhdCBpcyBub3QgZW1wdHku%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~Q09VTlRBKHZhbHVlMSwgW3ZhbHVlMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvY291bnRhIg%2Cs_jqGniWiomc-ooAN4.png"
---

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

# **The COUNTA function**

Counts the cells that are not empty: numbers, text, logical values and errors.

=

COUNTA(

## **Syntax**

```
COUNTA(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=COUNTA(A2:A6)

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

C1=COUNTA(A1:A6)

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

## **Practice COUNTA**

- [**1****Count filled-in cells with COUNTA**→](https://practiceexcelonline.com/practice/count/counta-non-empty-cells)

## **Related functions**

- [**COUNT**](https://practiceexcelonline.com/functions/count)
- [**COUNTBLANK**](https://practiceexcelonline.com/functions/countblank)

```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/counta#webpage","@type":"WebPage","description":"How to use COUNTA in Excel and Google Sheets: count every cell that is not empty.","name":"COUNTA function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/counta","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/counta#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/counta"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/counta#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":"COUNTA function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/counta#article","description":"How to use COUNTA in Excel and Google Sheets: count every cell that is not empty.","headline":"COUNTA function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRBIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBDT1VOVEEgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGNvdW50IGV2ZXJ5IGNlbGwgdGhhdCBpcyBub3QgZW1wdHku%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~Q09VTlRBKHZhbHVlMSwgW3ZhbHVlMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvY291bnRhIg%2Cs_jqGniWiomc-ooAN4.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/counta#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/counta#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_~Q09VTlRBIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBDT1VOVEEgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGNvdW50IGV2ZXJ5IGNlbGwgdGhhdCBpcyBub3QgZW1wdHku%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~Q09VTlRBKHZhbHVlMSwgW3ZhbHVlMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvY291bnRhIg%2Cs_jqGniWiomc-ooAN4.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRBIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBDT1VOVEEgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGNvdW50IGV2ZXJ5IGNlbGwgdGhhdCBpcyBub3QgZW1wdHku%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~Q09VTlRBKHZhbHVlMSwgW3ZhbHVlMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvY291bnRhIg%2Cs_jqGniWiomc-ooAN4.png"}]}
```

## Sitemap

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