Skip to content

How to count cells that contain numbers in Excel and Google Sheets

Excel & Google Sheets
=COUNT(B2:B6)

Verified example

Computed by a real spreadsheet engine on the sample data below.

EntryValue
A10
BN/A
C30
D
E50

=COUNT(B2:B6)3

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the range you want to evaluate, e.g. B2:B6.
  2. 2In an empty cell type =COUNT(B2:B6) and press Enter.
  3. 3The result is the count of cells in that range that contain numeric values only.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Why does COUNT return fewer cells than I expect?

Some cells likely contain numbers stored as text (common after importing data). Use VALUE() to convert them or check with ISNUMBER().

Does COUNT include cells with 0?

Yes — zero is a valid number and COUNT includes it.

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: