最近7天的合计数和平均数,请大神相助
数据每天会增加更新,求C列过去一周的借方发生额(C列合计、平均)。
=SUMIF(A:A,TEXT(TODAY()-6,">e-mm-dd hh:mm:ss'"),C:C)
这是求和,平均怎么算的,不懂?是直接/5? 是的,但是这个5,怎么用公式表述呢? =SUMIF(A:A,TEXT(TODAY()-6,">e-mm-dd hh:mm:ss'"),C:C)
=SUMIF(A:A,TEXT(TODAY()-6,">e-mm-dd hh:mm:ss'"),C:C)/7
这是7天的求和跟平均。
=SUMIF(A:A,TEXT(TODAY()-4,">e-mm-dd hh:mm:ss'"),C:C)
=SUMIF(A:A,TEXT(TODAY()-4,">e-mm-dd hh:mm:ss'"),C:C)/5
这是5天的求和跟平均。看看哪变了 求和
=SUM((($A$15:$A$10000)*1>TODAY()-6)*$C$15:$C$10000)
求平均
=SUM((($A$15:$A$10000)*1>TODAY()-6)*$C$15:$C$10000)/(COUNT(0/FREQUENCY(INT((($A$15:$A$10000)*1>TODAY()-6)*($A$15:$A$10000)),INT((($A$15:$A$10000)*1>TODAY()-6)*($A$15:$A$10000))))-1)
页:
[1]