I use Aggregate. There are number choices, 1 is Average I believe. It'll only calculate on the visible rows.
It'd look like this. =Aggregate (1,5,your array)
Hope that helps.