Count cells that contain numbers
Let's say you want to count only rows that contain numbers and dates in a column that contains a mix of different data types. There are several ways to count cells that contain numbers.What do you want to do?
Count cells that contain numbers in a contiguous row or column
Count cells that contain numbers that are not in a contiguous row or column
Count cells that contain numbers in a contiguous row or column
- Select a cell below or to the right of the numbers that you want to count.
- On the
Hometab, in theEditinggroup, click the arrow next toAutoSum
, click Count Numbers, and then press ENTER.
Count cells that contain numbers that are not in a contiguous row or column
To do this task, use the COUNT function.
Example
The example may be easier to understand if you copy it to a blank worksheet.
How to copy an example
- Create a blank workbook or worksheet.
- Select the example in the Help topic.
Note Do not select the row or column headers.
Selecting an example from Help
- Press CTRL+C.
- In the worksheet, select cell A1, and press CTRL+V.
- To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the
Formulastab, in theFormula Auditinggroup, click theShow Formulasbutton.
|
|
Function details
![]()