## AVERAGE ignore 0 (zero)

*Article updated on December 13, 2017*

The array formula in cell D3 calculates an average and ignores 0 (zeros).

The formula above is an array formula. To enter an array formula, type the formula in a cell then press and hold CTRL + SHIFT simultaneously, now press Enter once. Release all keys.

The formula bar now shows the formula enclosed with curly brackets telling you that you entered the formula successfully. Don't enter the curly brackets yourself.

The IF function checks if values in B3:B8 are not equal to 0, it returns the value if TRUE and returns a blank if it is FALSE.

becomes

and returns

The AVERAGE function then calculates the average of the numbers in the array, it ignores the blank values.

returns 4. 3 + 5 +4 +4 = 16. 16/4 = 4.

### Download Excel *.xlsx file

### Leave a Reply

**How to add a formula to your comment:**

<code>your formula</code>

Remember to convert less than and larger than signs to html character entities before you post your comment.

**How to add VBA code to your comment:**

[vb 1="vbnet" language=","]

VBA code

[/vb]

**How to add a picture to your comment:**

Upload picture to postimage.org

Add picture link to comment.

**Contact Oscar**

You can contact me through this webpage

## Share this article