How do I calculate the average in Google Sheets for values greater than zero? 2

How do I calculate the average in Google Sheets for values greater than zero?

To calculate the average of values greater than zero in Google Sheets, follow these steps:
1. Select the cell where you want the average to be displayed.
2. Type the formula “=AVERAGEIF(range,”>0″)” into the cell, where “range” is the range of cells containing the values.
3. Press Enter to calculate the average.
4. The result will be the average of all values in the specified range that are greater than zero.

Google Sheets: Calculate Average if Greater Than Zero


You can use the following formula to calculate the average in Google Sheets only for values that are greater than zero:

=AVERAGEIF(B2:B14, ">0", B2:B14)

This particular formula calculates the average value in the range B2:B14 only for the cells that have a value greater than zero.

The following example shows how to use this formula in practice.

Example: Calculate Average if Greater than Zero in Google Sheets

Suppose we have the following dataset in Google Sheets that shows the total sales made by various employees at a company:

If we simply used the AVERAGE() formula, we would find the average sales for all of the employees:

The average sales per employee is 3.307.

However, suppose we wanted to only calculate the average for employees who had greater than zero sales.

We could type the following formula into cell D2:

=AVERAGEIF(B2:B14, ">0", B2:B14)

The following screenshot shows how to use this formula in practice:

Google Sheets average if greater than zero

The average sales for employees who had greater than zero sales was 4.3.

This formula calculated the average by only using the values that were greater than zero.

Average of Values Greater than Zero: (10+4+4+3+9+2+1+1+4+5) / 10 = 4.3.

This matches the value calculated by our formula.

Cite this article

stats writer (2024). How do I calculate the average in Google Sheets for values greater than zero?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-do-i-calculate-the-average-in-google-sheets-for-values-greater-than-zero/

stats writer. "How do I calculate the average in Google Sheets for values greater than zero?." PSYCHOLOGICAL SCALES, 27 Jun. 2024, https://scales.arabpsychology.com/stats/how-do-i-calculate-the-average-in-google-sheets-for-values-greater-than-zero/.

stats writer. "How do I calculate the average in Google Sheets for values greater than zero?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-do-i-calculate-the-average-in-google-sheets-for-values-greater-than-zero/.

stats writer (2024) 'How do I calculate the average in Google Sheets for values greater than zero?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-do-i-calculate-the-average-in-google-sheets-for-values-greater-than-zero/.

[1] stats writer, "How do I calculate the average in Google Sheets for values greater than zero?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How do I calculate the average in Google Sheets for values greater than zero?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top