Step-by-step guide

How to count cells in Excel
COUNT, COUNTA, COUNTIF, COUNTIFS

Four counting functions — each answers a different question. Here's which one to use when.

EP
ExcelPro·Sep 11, 2026

COUNT — count cells with numbers

=COUNT(A2:A100) -- Counts only cells containing numbers (and dates) -- Ignores text, blanks, and errors

COUNTA — count all non-blank cells

=COUNTA(A2:A100) -- Counts everything that isn't blank — numbers, text, errors -- Use this to count rows of data regardless of data type

COUNTBLANK — count empty cells

=COUNTBLANK(A2:A100) -- Counts blank cells -- Useful for finding missing data

COUNTIF — count with one condition

=COUNTIF(range, criteria) =COUNTIF(B2:B100, "North") count rows where B = "North" =COUNTIF(C2:C100, ">1000") count rows where C > 1000 =COUNTIF(A2:A100, "apple*") count rows starting with "apple"

COUNTIFS — count with multiple conditions

=COUNTIFS(range1, criteria1, range2, criteria2, ...) =COUNTIFS(B2:B100, "North", C2:C100, ">1000") -- Count rows where B = "North" AND C > 1000
FunctionUse when you want to count...
COUNTCells containing numbers only
COUNTAAny non-blank cell
COUNTBLANKEmpty cells
COUNTIFCells matching one condition
COUNTIFSCells matching multiple conditions

Practice what you just learned

ExcelPro has 880+ hands-on exercises across 9 tracks — type real formulas, get instant feedback.

Start practising free →
Keep reading