使用SUMIF函数来计算每月降水量值以指定日期窗口
我有一个Excel表,其中一列(每天)中的日期为日期,该日期的总降水值在2000年1月1日至31/12/2021中的另一列中。
我想计算2000年至2021年的每月降水量总数。
在网上进行了一些研究之后,我一直使用的公式(我计划在几个月内进行迭代):
=SUMIFS(B2:B8036,C2:C8036,"<="&DATE(2003,9,1),C2:C8036,">="&DATE(2003,9,30))
我想总和的值(降水)在b中列,日期在C列中。但是,即使实际值应为131.94,我也会在单元格中返回一个零值。
我不确定我在公式中犯了什么错误。
I've got an excel sheet with dates in one column (daily) and total precipitation values for that date in another column from 01/01/2000 to 31/12/2021.
I want to calculate the total monthly precipitation values from 2000 to 2021.
The formula I have been using after some research online was (which I was planning on iterating over the months):
=SUMIFS(B2:B8036,C2:C8036,"<="&DATE(2003,9,1),C2:C8036,">="&DATE(2003,9,30))
The values I want to sum (precipitation) are in the B column, the dates are in the C column. However, I get a zero value returned in the cell when I run the formula, even though the actual value should be 131.94.
I'm not sure what mistake I made in my formula.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的操作员错了,将其更改为
解决了我的问题。
My operators were wrong, changing it to
solved my problem.