Table of Contents
The COUNTIF function in Google Sheets is recognized as an indispensable tool for efficient data analysis and reporting. This versatile function allows users to determine the precise number of cells within a designated range that successfully satisfy a single, predefined condition, known as a criteria. One of the most common and practical applications of this function involves counting only the positive values—that is, the values which are strictly greater than zero. This technique is crucial when assessing performance metrics, sales figures, or inventory levels where a positive outcome signifies successful completion or availability. Understanding the mechanics of how to correctly formulate the criteria for “greater than zero” ensures high fidelity in your spreadsheet calculations and data summary.
To effectively utilize the COUNTIF function for this purpose, the core syntax must be followed meticulously: =COUNTIF(range, criteria). The range argument specifies the collection of cells you wish to examine, such as B2:B100 or A:A. The criteria argument is where the specific condition is defined. In the case of isolating positive numbers, the criteria must be entered as ">0". Note that when using comparison operators (like greater than, less than, or equal to), the criteria must always be enclosed in double quotation marks to be correctly interpreted by Google Sheets as a logical condition rather than a cell reference or a static value. This straightforward yet powerful approach transforms raw data into actionable insights by filtering out negative results, errors, or empty cells, focusing solely on the achievements or positive contributions within the dataset.
Implementing the COUNTIF Formula for Positive Values
To begin calculating the number of cells that contain a value exceeding zero in your Google Sheet, you must first locate the appropriate range and then construct the formula using the specific syntax for the greater than operator. The structure is designed for simplicity and efficiency, allowing for rapid calculation across large datasets. This process is fundamental for analysts needing quick summaries of positive contributions, such as transactions that resulted in profit or tasks that were completed successfully, thereby excluding neutral or detrimental outcomes.
The standard formula template requires specifying the cell range followed by the criteria string. For example, if your numerical data is housed in cells B2 through B11, the formula should target this range explicitly. The key component, the comparison operator, is the greater than symbol (>), which, when paired with the value zero, precisely instructs the function to tally only numbers strictly above that threshold. This exclusion of zero itself is vital when distinguishing between non-performance (zero sales) and active performance (positive sales).
You can use the following basic formula to count the number of cells that are greater than zero in Google Sheets:
=COUNTIF(B2:B11, ">0")
This particular formula counts the number of cells in the range B2:B11 that have a value strictly greater than zero. This is a common requirement in data validation where you need to confirm participation or activity.
Deconstructing the Criteria Component: “>0”
Understanding how Google Sheets processes the criteria argument is essential for troubleshooting and applying advanced logical functions. When the COUNTIF function encounters the criteria ">0", it performs a logical test on every cell within the specified range. The double quotes surrounding the criteria are mandatory because they signal to the spreadsheet environment that the content is a comparison operator combined with a numerical value, rather than a direct numerical match or a reference to a cell named >0 (which is not possible).
The use of the greater than symbol (>) sets the specific inequality condition. If we were to omit the quotation marks and simply write =COUNTIF(B2:B11, >0), Google Sheets would generate an error because it would interpret >0 as an incomplete mathematical expression outside the context of a text string criteria. This adherence to quoting comparison operators is a standard rule across most spreadsheet applications, ensuring the integrity of the conditional counting process.
Furthermore, defining the condition as “greater than zero” explicitly excludes negative numbers, the number zero itself, and any text or error values, focusing the count exclusively on positive numerical entries. This level of precision is critical in financial or performance reporting where distinguishing between a net-zero result and a positive achievement is paramount. By mastering the correct application of quotation marks and the criteria string, users gain greater control over their data analysis outcomes.
The following example shows how to use this formula in practice, focusing on a realistic business scenario involving employee performance.
Practical Application: Analyzing Employee Sales Data
Example: COUNTIF Greater Than Zero in Google Sheets
Suppose we have the following dataset in Google Sheets that shows the number of sales made by various employees at a company during a given month. In this scenario, management wants to quickly ascertain how many employees were actively engaged in making sales, meaning they must have recorded at least one sale (a value greater than zero).

The objective is clear: count the number of employees whose sales figure in column B is greater than zero. We are not interested in the total volume of sales, but rather the count of successful sales personnel. This requires using the COUNTIF function, directing it to the sales data range and applying the strict positive value criteria.
We can use the following formula to count the number of employees who made more than zero sales, identifying the active sales force within the dataset:
=COUNTIF(B2:B11, ">0")Step-by-Step Execution and Result Verification
To implement this solution, simply navigate to an empty cell outside the data range (e.g., cell D2) and paste the constructed formula. Upon execution, the COUNTIF function processes the values sequentially. It checks B2 (12, is 12 > 0? Yes, count 1), B3 (0, is 0 > 0? No), B4 (4, Yes, count 2), and so on, until it reaches the end of the range B11. This immediate feedback provides a powerful summary statistic without the need for manual inspection or filtering.
The following screenshot visually demonstrates the exact application of this formula within the spreadsheet environment, showing where the formula is entered and the resulting output it generates. Notice how the simplicity of the formula belies its analytical power, instantly summarizing a key performance indicator (KPI): the total number of employees achieving the minimum sales threshold.

Upon successfully applying the formula =COUNTIF(B2:B11, ">0"), we can see that the resulting value displayed in the designated output cell is 6. This critical result immediately informs the user that out of the ten employees listed in the dataset, six of them managed to achieve at least one sale during the period under review. This figure represents the total count of positive contributions, excluding those employees who recorded zero or negative figures (if applicable).
To ensure the accuracy of the formula and to build confidence in this automated approach to data analysis, it is good practice to manually verify the counted cells against the original data. By systematically examining the values in column B, we can confirm which entries satisfy the criteria of being strictly greater than zero, confirming the count of 6 is correct.
We can confirm this by manually identifying each of these employees whose sales figures are positive:

Expanding the Scope: Counting Greater Than or Equal To Zero
While counting values strictly greater than zero (>0) is highly useful for isolating positive performance, situations often arise where you need to include zero values in your count. This is particularly relevant when analyzing data where a zero is considered a neutral or acceptable outcome, such as counting all non-negative inventory levels, or including employees who reported sales of zero alongside those with positive sales. In these cases, we shift from the strict greater than symbol to the “greater than or equal to” operator.
If you would like to count the number of cells in a range that are equal to or greater than zero, meaning the inclusion of the boundary value 0, simply adjust the criteria string within the COUNTIF function. The operator for this combined condition is >=. When applied, the function will successfully count all positive numbers AND any cells containing the numerical value 0, effectively giving you the total count of non-negative entries in the selected range.
The change in the criteria is subtle but fundamentally alters the result, as it incorporates all values that were previously excluded solely due to being zero. Using this modified condition is often necessary when analyzing datasets where the absence of a negative number is the desired outcome, regardless of whether the cell contains a positive number or zero. The resulting formula structure remains intuitive and adheres to the standard COUNTIF syntax:
=COUNTIF(B2:B11, ">=0")Troubleshooting and Common COUNTIF Criteria Errors
Despite the relative simplicity of the COUNTIF function, users frequently encounter issues related to criteria formatting, which leads to incorrect counts or error messages. The most common error when using comparison operators like greater than symbol is forgetting to enclose the criteria in double quotation marks. As previously mentioned, >0 must be treated as a text string ">0" for the comparison to work correctly within the spreadsheet logic. Without the quotes, the function cannot parse the condition and will fail.
Another frequent oversight involves mixing data types. COUNTIF is designed to count numerical values when using numerical criteria. If the range B2:B11 contains numbers that are formatted as text (e.g., numbers that have been inadvertently prefixed with an apostrophe), the function will generally fail to recognize them as numerical values greater than zero, resulting in an artificially low count. It is always important to ensure your data is clean and consistently formatted as numerical entries before performing conditional counting operations. You can often check this by selecting the cells and verifying the format under the Format menu in Google Sheets.
Finally, ensure that when referencing cell values within the criteria, you concatenate the operator and the reference correctly. For example, if you want to count values greater than the number stored in cell C1, the criteria must be written as ">"&C1. Failing to use the ampersand (&) for concatenation means the function will literally search for the text string >C1 instead of evaluating the value of C1. Maintaining precision in the criteria structure is the backbone of accurate conditional counting and effective data analysis.
The following tutorials explain how to perform other common COUNTIF() operations in Google Sheets:
Cite this article
stats writer (2025). How to Count Values Greater Than Zero in Google Sheets Using COUNTIF. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-to-use-google-sheets-countif-greater-than-zero/
stats writer. "How to Count Values Greater Than Zero in Google Sheets Using COUNTIF." PSYCHOLOGICAL SCALES, 28 Nov. 2025, https://scales.arabpsychology.com/stats/how-to-use-google-sheets-countif-greater-than-zero/.
stats writer. "How to Count Values Greater Than Zero in Google Sheets Using COUNTIF." PSYCHOLOGICAL SCALES, 2025. https://scales.arabpsychology.com/stats/how-to-use-google-sheets-countif-greater-than-zero/.
stats writer (2025) 'How to Count Values Greater Than Zero in Google Sheets Using COUNTIF', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-to-use-google-sheets-countif-greater-than-zero/.
[1] stats writer, "How to Count Values Greater Than Zero in Google Sheets Using COUNTIF," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, November, 2025.
stats writer. How to Count Values Greater Than Zero in Google Sheets Using COUNTIF. PSYCHOLOGICAL SCALES. 2025;vol(issue):pages.
