How to Count Only Totals Greater Than Zero in Excel
Question details
The user needs to count only the cells in a total column that have a value greater than zero, while ignoring cells containing formulas that output a zero or remain blank.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating the number of active income sources or positive totals from a column generated by formulas.
- Observed behavior
- The standard COUNT function counts every cell containing a formula, including those that output a zero, which results in an inaccurate count of the positive totals.
Ensure that your target range only contains the numeric values or formulas you want to evaluate, and verify that the formulas outputting zero are formatted as numbers rather than text strings.
Use the COUNTIF Function to Filter Out Zero Values
The COUNTIF function evaluates cells against a specific logical criterion, such as being strictly greater than zero.
By applying the COUNTIF function with a ">0" condition, Excel will evaluate the calculated results of the formulas in your selected range, completely ignoring zeros and empty strings.
Click on the cell where you want the final count of positive totals to be displayed.
Type =COUNTIF(total_range, ">0"), replacing "total_range" with your actual cell references (for example, =COUNTIF(D2:D20, ">0")).
Press Enter on your keyboard to apply the formula. The cell will now display the total count of numbers greater than zero.

Use WPS Spreadsheet to Count Data with Precision
WPS Office offers robust spreadsheet capabilities perfectly compatible with standard Excel formulas like COUNTIF. You can efficiently manage, count, and analyze your financial or project data in a familiar, intuitive interface.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your existing spreadsheet containing the total columns.
- 2. Apply the COUNTIF formula: Click on your desired result cell and type =COUNTIF(your_range, ">0").
- 3. Get instant results: Press Enter to instantly count all formula results that are greater than zero.

Frequently Asked Questions
Why does the standard COUNT function include cells with a zero value?
The standard COUNT function tallies the total number of cells that contain numeric data. Since a formula returning a zero is technically producing a valid numeric output, COUNT includes it in the total.
Can I count cells greater than a specific number other than zero?
Yes, you can easily adjust the criterion in the COUNTIF formula. For example, using =COUNTIF(A1:A10, ">50") will count only the cells that have a value strictly greater than 50.
How do I count cells that are strictly greater than or equal to zero?
To include exact zeros in your final count along with positive numbers, modify the logical operator in the formula to be greater than or equal to. You would use the formula =COUNTIF(total_range, ">=0").




