How do you define criteria if you want to average a range of numbers, but want to ignore errors using the AVERAGEIF () function?
For example, given the data below:
A1: 1 A2:
I want to use the AVERAGEIF formula (range, criteria) something like this:
=AVERAGEIF(a1:a5,and("<>#DIV/0!","<>#VALUE!")) or =AVERAGEIF(a1:a5,"<>Error()")
Is there a way to specify criteria for eliminating errors? The answer I expect from the range is 2, the average of three real numbers (1, 5, and 0).
I found through a search that there is a way to do this using an array formula or other functions, but I want to find out if there is a way to do this without an array formula or using another function. In principle, you can specify in the criteria to ignore errors. For example, I can ignore one error as follows:
AVERAGEIF(a1:a5,"<>#DIV/0!")
But I do not know how to indicate to ignore any errors. So my question is a question of criteria. I am using Microsoft Excel 2013.
ciso source share