==AVERAGEIFS(avg_rng, range1, criteria1, [range2], [criteria2], ...)
=AVERAGEIFS(C5:C15,C5:C15,">0")
returns the average price of properties greater than zero. This formula looks at the range of cells C5 to C15 and averages all of the values that are greater than zero.
=AVERAGEIFS(C5:C15,D5:D15,">=2",E5:E15,">1")
returns the average price of properties with more than 1 bathroom and at least 2 bedrooms. This formula looks at the range of cells C5 to C15 and averages all of the values that meet the criteria of having more than 1 bathroom and at least 2 bedrooms.
=AVERAGEIFS(C5:C15,C5:C15,">0",C5:C15,"<500000")
returns the average price of properties greater than zero and less than $500,000. This formula looks at the range of cells C5 to C15 and averages all of the values that meet the criteria of being greater than zero and less than $500,000.
The AVERAGEIFS function calculates the arithmetic mean of cells matching multiple criteria. Cells in the average_range which aren't numbers will return a #DIV/0! error, and empty cells in the criteria range will be treated as 0.