How to Average in Google Sheets If Value Is Not 0 (2 Simple Ways)

In mathematical calculations, the average plays a significant role. When calculating the average, it could bias the data if we count zero. As a result, understanding how to use Google Sheets AVERAGE is similarly crucial for accuracy and fairness, if not even zero (0). This post will show you how to average data from Google Sheets when it contains zeros.

A Sample of Practice Spreadsheet

You can copy the spreadsheet that we’ve used to prepare this article.

Why We Cannot Ignore Zero (0) in AVERAGE Function in Google Sheets

The Google Sheets AVERAGE function typically counts all values, including zero, with the exception of empty cells and text values. Check the following example.

average function can not ignore zero in google sheets

Fundamentally, the syntax of the AVERAGE function only accepts values or a range. Even if we wanted to exclude zero, we couldn’t do so using the AVERAGE function because it doesn’t need any conditions or criteria.

As a result, it included zero and generated a score of 5.6 on average.

However, the good thing is, in Google Sheets, there are two simple ways to determine the average by overcoming this issue.

2 Simple Ways to Average in Google Sheets If Value Is Not (0)

1. Application of AVERAGEIF Function

AVERAGEIF is the appropriate function to utilize if we wish to exclude zero from the average calculation. This post will demonstrate the procedures using a clear and simple example.

data for averageif function

Consider that we have data on the most recent class test of a student. We intend to find the average score for the five subjects.

It should be noted that we may overlook any subject if the result is zero in order to measure the overall performance.

zero value in the table of google sheets


  • Select cell C11 first.
  • We’ll employ the AVERAGEIF function. In this instance, the criterion range is C5:C9, and we need to place it first.

how to use average function to discard zero

  • The condition now is to exclude 0. Therefore, we will use “<>0” to indicate that we do not want to use zero values while averaging the values within the specified cell range.
  • The final equation is thus:

use of average function if the value is not zero

  • We can get your answer by pressing ENTER.

final result of average if in case of data not zero

If we mathematically check the equation, the total sum is 28. Now, if we disregard the zero, we must also ignore the subject count.

As a result, We will receive a final score of 7, which is the average of the remaining four.

If we add the zero, it will be 5.8, nevertheless.

As proof, we now realize that AVERAGEIF and “<>0” is the appropriate expression to utilize if we want to use Google Sheets average in cases of if not zero.

Read More: How to Use AVERAGEIF Function in Google Sheets (6 Examples)

2. Use of AVERAGE & QUERY Functions

To ignore 0 numbers, we may alternatively combine the QUERY function with the AVERAGE function. We will use the QUERY function to add criteria within the AVERAGE function since the AVERAGE function is unable to contain any conditions or criteria. The QUERY function will work as a filter here so that we can get values that are greater than zero (0). We’ll show you how to do it using the same database.


  • First, select cell C11.
  • Secondly, use the following formula:
  • Press ENTER, finally, to get the result.

use of average and query functions

Formula Explanation:

  • QUERY function
    • The data range for the QUERY function is C3:C9.
    • “SELECT C Where C >0” returns values larger than 0 in column C.
  • AVERAGE function
    • Averages the values returned by the QUERY function.
NOTE: The value for the query must either be a reference to a cell containing the required content or be contained in quotation marks.

Read More: How to Find Average in Google Sheets (8 Easy Ways)


With this knowledge, you may quickly calculate your average in Google Sheets without distorting your data. While conducting significant analysis, it’s crucial to have a proper comprehension of mathematical equations. One of the cases is Google Sheets AVERAGE if the value is not zero (0).

Visit OfficeWheel to read more articles on Google Sheets average.

Related Articles

Ishrak Khan

Ishrak Khan

Ishrak Khan is a writer and urban planner born in Dhaka, Bangladesh, one of the largest mega-cities. He is a professional Content Developer closely working with OfficeWheel. He simply likes to enthrall his readers. He loves Football, Nico Robin, Deserts, and Twix. If you like the post, give him a heart on Instagram.

We will be happy to hear your thoughts

Leave a reply