EXCEL表格中,有正有负,怎样分别求正数AVG,MAX,MIN和负数AVG,MAX,MIN的值.求公式.

2024-11-22 14:49:13
推荐回答(4个)
回答1:

正数
AVG =average(if(a1:b4>=0,a1:b4,"")) ctrl+shift+enter三键结束
MAX =max(a1:b4)
MIN =min(if(a1:b4>=0,a1:b4,"")) ctrl+shift+enter三键结束

负数
AVG =average(if(a1:b4<0,a1:b4,"")) ctrl+shift+enter三键结束
MAX max(if(a1:b4<0,a1:b4,"")) ctrl+shift+enter三键结束
MIN =min(a1:b4)

回答2:

正数
AVG =sumif(a:b,">0")/countif(a:b,">0")
MAX =max(a:b)
MIN =min(if(a1:b4>0,a1:b4,"")) ctrl+shift+enter ,应该是 0.02
负数
AVG =sumif(a:b,"<0")/countif(a:b,"<0")
MAX =max(if(a1:b4<0,a1:b4,"")) ctrl+shift+enter
MIN =min(a:b)

回答3:

拿正数来举例,求和=SUMIF(A1:B4,">=0",A1:B4),计数=COUNTIF(A1:B4,">=0"),平均就是这两个相除就好。

回答4:

这个问题不是已经帮你搞定了吧?不明白可以HI我呀