Ignore zero in the Average of numbers

In this article, we will learn about how to get the Average of numbers ignoring zero in Excel.

In simple words, Average of numbers is the ratio sum of the numbers to the total number of values in the data.

Average = Sum of values(numbers) / number of values(numbers)

AVERAGEIF function returns the average of the numbers which satisfies the condition.
Syntax:

=AVERAGEIF(range,”<>0″)

Range : numbers or values
“<>0” : condition that the value equals to zero (0) will be ignored.

Let’s understand this function using it in an example.
003
First of all we need Average of the numbers including zeroes.
004
This formula will accept values except zero.

Use the formula:

=AVERAGEIF(A2:A21, “<>0″)

A2:A21 : range
“<>0” : condition for ignoring zero values.
005
As you can see the difference in the values. The Average of the numbers ignoring zero is 43.4.

For Blank cells
One more thing that is to understand is the AVERAGE, AVERAGEIF & AVERAGEIFS function ignores blank cells (and cells that contain text values). So there is no need to filter results.

Hope you understood how to get the Average of numbers ignoring zero in Excel. Explore more articles on Excel mathematical functions here. Please feel free to state your query or feedback for the above article.
Here As you can see B1 has the Formula indicating A1 cell and Text in A1 is D1. So the function returns the value in the D1 cell which is 500.

You can use it in many forms as shown here
006
Here & operator is used for joining the text to get a full address of the cell. So A1 has D and 1 is added to D, get D1 cell ref.
You can directly refer to any cell.
007
Here D1 is directly supplied to get the return from D1 address.
You can use it with other functions to get the sum of the range given by cell reference.
008
Here Range is provided to Sum functions referring A2:A5 cell.

Hope you understood how to use Indirect function and referring cell in Excel. Explore more articles on Excel function here. Please feel free to state your query or feedback for the above article.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube