EXCEL中如何在C列输出按区间的求和值,需要具体的函数和公式。

2024-12-20 20:00:49
推荐回答(2个)
回答1:

在C1中写=SUMIFS(B2:B14,A2:A14,"<=3)
在C2中写=SUMIFS(B2:B14,A2:A14,">3",A2:A14,"<=5")
在C3中写=SUMIFS(B2:B14,A2:A14,">5",A2:A14,"<=8")
在C4中写=SUMIFS(B2:B14,A2:A14,">8")
这样就可以在四个单元格中得到四组和

回答2:

<=3: =sumif(a:a,"<=3",b:b)
3-5: =sumifs(b:b,a:a,">3",a:a,"<=5")
5-8: =sumifs(b:b,a:a,">5",a:a,"<=8")
>8: =sumif(a:a,">8",b:b)