Table of Contents
Excel’s COUNTIF function is a useful tool for counting the number of cells that meet a specific criteria. In this case, the function can be used to count the number of cells that are greater than zero. To do this, the user must first select the range of cells they want to include in the count. They then enter the criteria “>0” in the COUNTIF function, which will instruct Excel to only count cells that have a value greater than zero. The function will then return the total number of cells that meet this condition. This can be helpful in analyzing data and identifying the number of positive values in a dataset.
Excel: COUNTIF Greater Than Zero
You can use the following basic formula to count the number of cells that have a value greater than zero in Excel:
=COUNTIF(B2:B11, ">0")
This particular formula counts the number of cells in the range B2:B11 that have a value greater than zero.
The following example shows how to use this formula in practice.
Example: COUNTIF Greater Than Zero in Excel
Suppose we have the following dataset in Excel that shows the number of sales made by various employees at a company during a given month:

We can use the following formula to count the number of employees who made more than zero sales:
=COUNTIF(B2:B11, ">0")The following screenshot shows how to use this formula in practice:

We can see that 6 employees had more than zero sales.
We can confirm this by manually identifying each of these employees:

If you would like to count the number of cells in a range that are equal to or greater than zero, simply use the following formula:
=COUNTIF(B2:B11, ">=0")Cite this article
stats writer (2024). How can I use Excel’s COUNTIF function to count the number of cells that are greater than zero?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-excels-countif-function-to-count-the-number-of-cells-that-are-greater-than-zero/
stats writer. "How can I use Excel’s COUNTIF function to count the number of cells that are greater than zero?." PSYCHOLOGICAL SCALES, 24 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-excels-countif-function-to-count-the-number-of-cells-that-are-greater-than-zero/.
stats writer. "How can I use Excel’s COUNTIF function to count the number of cells that are greater than zero?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-excels-countif-function-to-count-the-number-of-cells-that-are-greater-than-zero/.
stats writer (2024) 'How can I use Excel’s COUNTIF function to count the number of cells that are greater than zero?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-excels-countif-function-to-count-the-number-of-cells-that-are-greater-than-zero/.
[1] stats writer, "How can I use Excel’s COUNTIF function to count the number of cells that are greater than zero?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I use Excel’s COUNTIF function to count the number of cells that are greater than zero?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
