# Average numbers ignore zero

=AVERAGEIF(range,"<>0")

To get the average of a set of numbers, excluding or ignoring zero values, use the AVERAGEIF function.

In the example shown, the formula in E6 is:

=AVERAGEIF(B6:D6,"<>0")

How this formula works

AVERAGEIF performs an average based on criteria you supply. In this example, the criteria supplied is "<>0", which means "not equal to zero".

Like AVERAGE , AVERAGEIF automatically ignores blank cells and text.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.