How to Count Numbers in Excel: A Comprehensive Step-by-Step Guide

Excel has several counting functions, and the right one depends on what you mean by “count numbers.” Use COUNT when you specifically want to count cells that contain numeric values.

Count numeric cells with COUNT

  1. Select the cell where you want the result.
  2. Enter a formula such as =COUNT(A2:A20).
  3. Press Enter.

Excel returns the number of numeric cells in the specified range. Dates and times can also be counted because Excel stores valid dates and times as numbers.

Count nonblank cells instead

If you need to count any populated cell, including text, use COUNTA. For example, =COUNTA(A2:A20) counts cells that are not empty.

Count values that meet a condition

Use COUNTIF when only certain entries should be counted. For example, =COUNTIF(A2:A20,">100") counts numeric values greater than 100.

Why COUNT can return a smaller number than expected

A value that looks like a number may actually be stored as text, especially after importing data. COUNT ignores text. Check the cell format and imported data before assuming the formula is wrong.

Blank cells are also ignored. Choose COUNT, COUNTA, COUNTIF, or COUNTIFS based on the question you need the worksheet to answer rather than using one counting function for every situation.

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy