How to Average a Range and Ignore Zero in Excel

This post will guide you how to average a range of cells and ignoring all zero values in Excel. How do I Average numbers in a given range and ignore zero values with a formula in Excel. How to ignore zero when averaging a range of data in Excel.

Average a Range and Ignore zero


Assuming that you have a list of data in range B1:B4, which contain numbers. And you want to get the average value of those values, but excluding all zero values. How to do it. You can use a formula based on the AVERAGEIF function to ignore zero when taking an average in Excel. Like this:

=AVERAGEIF(B1:B4,"<>0")

Type this formula into a blank cell and press Enter key on your keyboard. Then it would return the average result which has ignored all zero values.

average a range ignore zero1

Let’s see how this formula works:

The AVERAGEIF function will perform an average based on your criteria, the values should not equal to zero value. And it will ignore all blank cells and text or zero values.

You can also use another formula to achieve the same result of calculating an average value for a given range ignoring zero values. Like this:

=SUM(B1:B4)/COUNTIF(B1:B4,">0")

Type this formula into a blank cell and press Enter key on your keyboard.

average a range ignore zero2

Related Functions


  • Excel SUM function
    The Excel SUM function will adds all numbers in a range of cells and returns the sum of these values. You can add individual values, cell references or ranges in excel.The syntax of the SUM function is as below:= SUM(number1,[number2],…)…
  • Excel AVERAGEIF function
    The Excel AVERAGEAIF function returns the average of all numbers in a range of cells that meet a given criteria.The syntax of the AVERAGEIF function is as below:= AVERAGEIF (range, criteria, [average_range])….
  • Excel COUNTIF function
    The Excel COUNTIF function will count the number of cells in a range that meet a given criteria. This function can be used to count the different kinds of cells with number, date, text values, blank, non-blanks, or containing specific characters.etc.= COUNTIF (range, criteria)…

 

You might also like:

Comments

So empty here ... leave a comment!

Leave a Reply

Your email address will not be published. Required fields are marked *

Sidebar