# Average and ignore errors

=AVERAGEIF(values,">=0")

To average a list of values, ignoring any errors that might exist in the range, you can use the AVERAGEIF or AGGREGATE function, as described below. In the example shown, the formula in E5 is:

=AVERAGEIF(values,">=0")

where "values" is the named range B5:B14.

The AVERAGEIF function can calculate an average of numeric data with one or more criteria. In this case, the criteria is the expression ">=0". This filters out error values, and AVERAGEIF returns the average of the remaining eight values, 91.75.

### Alternative with AGGREGATE

The AGGREGATE function can also ignore errors when calculating an average. To calculate an average with the AGGREGATE function, you can use a formula like this:

=AGGREGATE(1,6,values)

Here, the number 1 specifies average, and the number 6 is an option to ignore errors. Like AVERAGEIF above, AGGREGATE returns the average of the remaining eight values, 91.75.

## 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.

## Download 200+ Excel Shortcuts

Get over 200 Excel shortcuts for Windows and Mac in one handy PDF.