使用SUMIF函数来计算每月降水量值以指定日期窗口

发布于 2025-02-11 20:21:20 字数 348 浏览 2 评论 0原文

我有一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦途 2025-02-18 20:21:20

我的操作员错了,将其更改为

=SUMIFS(B2:B8036,C2:C8036,">="&DATE(2003,9,1),C2:C8036,"<="&DATE(2003,9,30))

解决了我的问题。

My operators were wrong, changing it to

=SUMIFS(B2:B8036,C2:C8036,">="&DATE(2003,9,1),C2:C8036,"<="&DATE(2003,9,30))

solved my problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文