Quick, clean, and to the point

Average numbers ignore zero

Excel formula: Average numbers ignore zero
Generic formula 

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:


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.

Dave Bruns

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.