"NA" :
=AVERAGE(IF(
(
($A$2:$A$13>=$F$2)*
($A$2:$A$13<=$F$3)*
ISNUMBER(B2:B13)
)>0,
B2:B13))
Ctrl Shift Enter↵.
, , . "" *; , , TRUE FALSE 1 0 , , , TRUE/FALSE >0. : 7 35 ( ), .

; AVERAGE SUM COUNT :
=SUM(IF((($A$2:$A$13>=$F$2)*($A$2:$A$13<=$F$3)*ISNUMBER(B2:B13))>0,B2:B13))
=COUNT(IF((($A$2:$A$13>=$F$2)*($A$2:$A$13<=$F$3)*ISNUMBER(B2:B13))>0,B2:B13))
although a more concise formula can also be used for counting:
=SUM(($A$2:$A$13>=$F$2)*($A$2:$A$13<=$F$3)*ISNUMBER(B2:B13))
The same formulas can be used to calculate the average amount / amount / count of your "empty" column. Here I just dragged them into one column on the right (column G), which means that all instances are B2:B13steel C2:C13.
source
share