COUNTA

    Statistical

    Counts the number of cells that are not empty. Includes cells with numbers, text, logical values, and errors.

    Translations
    EnglishCOUNTA
    FrenchNBVAL
    SpanishCONTARA
    GermanANZAHL2
    ItalianCONTA.VALORI
    PortugueseCONT.VALORES
    DutchAANTALARG
    PolishILE.NIEPUSTYCH
    RussianСЧЁТЗ
    TurkishBOŞOLMAYAN_SAY
    CzechPOČET2
    HungarianDARAB2
    SwedishANTALV
    DanishTÆLV
    FinnishLASKE.A
    Syntax
    COUNTA(value1, [value2], ...)

    Arguments

    • value1The first cell or range to count
    • value2Additional cells or ranges to count(optional)
    Examples
    =COUNTA(A1:A10)
    10

    Counts all non-empty cells in A1:A10

    =COUNTA(A1:C10)
    25

    Counts non-empty cells in a larger range

    =COUNTA(A:A)
    150

    Counts all non-empty cells in column A

    Tips & Best Practices
    • COUNTA counts cells with formulas that return empty strings
    • Use COUNT if you only want to count numbers
    • Useful for determining how many entries exist in a list
    Common Mistakes
    • Using COUNTA to count numeric entries only and getting a bigger number than expected, because it also counts text and dates
    • Not realizing a cell containing a formula that returns an empty string still counts as non-empty for COUNTA
    • Counting a range with a stray space character left over from cleanup, which COUNTA still treats as non-empty
    Related Functions
    COUNTCounts only numeric cells, ignoring text
    COUNTBLANKCounts the empty cells COUNTA leaves out
    COUNTIFCounts cells that match a specific condition rather than just non-empty ones
    Frequently Asked Questions

    Why does COUNTA count more cells than I expect?

    It counts anything that isn't truly empty - including a single space, a formula returning an empty string, or a stray zero-length text value.

    Does COUNTA count a cell that looks blank after content was deleted?

    If the cell is truly empty after deletion, no. If leftover formatting or a space remains, it still counts as non-empty.

    How do I count only text entries, not numbers?

    Subtract COUNT from COUNTA: =COUNTA(range)-COUNT(range) gives you the count of non-numeric, non-empty entries.

    Need to translate a formula using COUNTA?

    Use our translator to convert your complete formula