你是不是想要实现这样的计算逻辑:
B2.Formula=AVERAGEIF(B3:B4,">0")
B5.Formula=AVERAGEIF(B6:B7,">0")
AVERAGEIF不支持对单独单元格进行计算,所以只能自己写计算公式:
B1.Formula==SUM(SUMIF(B2,">0"),SUMIF(B5,">0"),SUMIF(B8:B9,">0"))/SUM(COUNTIF(B2,">0"),COUNTIF(B5,">0"),COUNTIF(B8:B9,">0")) |