Use the COUNT function to count cells containing numeric data
To count all cells that contain numbers, use the COUNT function. Please note that all empty cells, logical values, text, and error values will be ignored. Here is the syntax that is used:
COUNT(value1, value2, …)
value1, value2, …: From 1 to 30 arguments of any type of data. However, all but numeric data is ignored.
To count the number of cells that contain numbers:
- In cells A1:A10 type data (numeric and text).
- Select cell C1 and type the following formula: =COUNT(A1:A10).
- Press Enter.
Arguments that are date and time values are counted as numeric too.
This tip is compatible with Excel 97, 2000, 2003 and 2007.
- How to Use the COUNTA function to count cells containing data
- How to Use the COUNTBLANK function to count empty cells
- How to Use the COUNTA function to count cells containing text
- How to count sets of cells located in two columns in Excel
- How to Utilize Data Entry Rules to Validate data in Excel 2007
