How to Count Nonblank or Numeric Cells in an Excel Column
Question details
The user needs to find the total count of items contained within a spreadsheet column, specifically targeting either all non-empty cells or exclusively those containing numbers.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Data analysis and basic statistical calculation for an entire column or specific cell range.
- Observed behavior
- Requires standard formulas to dynamically calculate the total number of nonblank items and numeric values in a selected column like column D.
Verify your data range and identify whether you need to count every piece of entered data (including text and errors) or strictly numeric values.
Count All Nonblank Cells Using the COUNTA Function
Use the COUNTA function when you want to calculate the total number of cells that are not empty, regardless of the data type (text, numbers, or errors).
The COUNTA function evaluates the specified range and counts any cell containing data. This is ideal for columns with mixed data types or text entries.
Click on a blank cell where you want the total count result to be displayed.
Type the formula =COUNTA(D:D) to count all nonblank cells in the entire column D. If you only want to count a specific portion of the column, define the exact range, such as =COUNTA(D2:D1000).
Press the Enter key. The cell will immediately display the total number of non-empty cells found in the selected range.

Count Only Numeric Values Using the COUNT Function
Use the COUNT function when you strictly need to find the number of cells containing numerical data, completely ignoring text or blank cells.
Analyze and Count Your Data Effortlessly with WPS Spreadsheet
WPS Spreadsheet provides robust and seamless support for all standard formula functions, including COUNTA and COUNT. You can efficiently analyze large datasets using the built-in formula tab and smart function auto-completion.
- 1. Open your dataset: Launch WPS Spreadsheet and open the document containing the columns you wish to analyze.
- 2. Access the Formulas tab: Click on an empty output cell, then navigate to the 'Formulas' tab on the top ribbon.
- 3. Insert the required function: Click on 'Insert Function' and search for 'COUNTA' to count nonblank items, or 'COUNT' for numerical values.
- 4. Define your range: Highlight your desired column or enter the range (e.g., D:D) in the function argument dialog box, then click 'OK' to get your result.

Frequently Asked Questions
How do I count the completely blank cells in a column?
You can use the COUNTBLANK function. For example, typing =COUNTBLANK(D:D) in an empty cell will return the total number of empty cells within column D.
Will the COUNTA function count cells containing errors or logical values?
Yes, COUNTA counts any cell that is not strictly empty. This includes cells with error values (such as #N/A or #DIV/0!) and logical values (TRUE or FALSE).
How can I count cells that meet a specific numerical condition?
To count cells based on specific criteria, use the COUNTIF function. For instance, =COUNTIF(D:D, ">50") will count all cells in column D that contain a number greater than 50.




