就是我要算十几个列(不是连续排列的)的平均值,某些列有0值,我就想忽略这些0,直接算那些有值的平均值,例如:12,13,16,0,19,16,0,17
我想得出15.5,而不是11.625
=AVERAGEIF(A1:D14,"<>0",A1:D14)
或
=SUM(A1:D14)/渣瞎码COUNTIF(A1:D14,"<>0")
A1:D14是如哪我假设神清的区域
=SUM(求平均值的区域)/COUNTIF(求平均值的区域,">0")
假设此好卖数据在森逗 A1:A8,则
=SUM(A1:A8)/COUNTIF(A1:A8,"<>袜仔0")
=sum(a1:a100)/countif(a1:a100,"<>0")