EXCEL SOLUTIONS

COUNTA function in Excel

Counts how many cells are not empty, whatever they contain.

BeginnerCounting

Syntax

=COUNTA(value1, [value2], ...)
Arguments of COUNTA
ArgumentWhat it means
value1The cells or range to look through.

Examples with results

Every result below is calculated by the practice engine on the sample data shown, not typed in by hand.

Office supplies sales (fictional)

RowABCDE
1ItemQtyUnit priceRegionDate
2Pen101.5North2025-01-15
3Notebook512South2025-02-03
4Pen201.5South2025-02-28
5Stapler240North2025-03-10
6Folder153.25East2025-03-22
7Notebook812East2025-04-05
8Pen121.5North2025-04-18
9Marker302South2025-05-02
Office supplies sales (fictional) Row 1 holds the headings. All data is fictional. Dates are year-month-day.

Download CSV

  • =COUNTA(A2:A9)8

    Number of rows with an item name

List A and list B (fictional)

RowAB
1OrderedReceived
2P-101P-102
3P-102P-101
4P-103P-105
5P-104P-103
6P-105
List A and list B (fictional) Row 1 holds the headings. All data is fictional. Dates are year-month-day.

Download CSV

  • =COUNTA(B2:B6)4

    Received items listed (the empty cell is skipped)

Try it yourself

Change the formula or switch to other sample data.

Press Calculate to see the result.

The practice box runs in your browser with BDK’s own calculator, which covers about 60 common functions. Cell references work as in Excel (B2, B2:B9). Your formulas are not saved or sent anywhere. For anything unusual, check the result in Excel itself.

How people use COUNTA at work

  • HR

    Headcount: how many names are on the list.

    =COUNTA(A2:A8)7
    Data: Team list (fictional)
  • Operations

    How many SKUs are listed.

    =COUNTA(A2:A6)5
    Data: Stock levels (fictional)

Common mistakes and tips

  • A cell that looks empty but holds a space or a formula returning "" is counted.

Works in

All versions of Excel, and Google Sheets.

Related formulas

COUNTCOUNTBLANK

Need Something Different? Let’s Talk.

Looking for different features or something built around your workflow? Share your idea with us.