I have an apparent problem using array formulas to calculate means, medians, etc. As shown on the attached sheet, I have defined a date range (date1) and a data range (q_1). Within those ranges there are days for which there are no data.
(1) If I use an array formula (cell F2);
e.g., =AVERAGE(IF((Date>=$D$2)*(Date<=$E$2),Discharge_cfs__Mean))
I get a result of 608.77.
(2) If I use (cell G2):
=AVERAGE(B2:B29162)
I get a result of 1137.25.
(3) If I remove all of the blank data points (date2 and q_2), the array formula and normal average agree.
Using ISNUMBER() shows the blank cells to be FALSE and the non-blank cells to be TRUE.
What the heck is going on here?! It appears that the array formula works differently from the standard formula in that it incorporates non-numeric data. Am I correct on this?