是否有一种方法可以添加“ else”。 countifs函数在excel中的声明?

发布于 2025-02-13 15:27:32 字数 236 浏览 3 评论 0原文

我有一个带有countifs的Excel公式,可以在某些条件下计数值数量,但是如果没有数量计数或值总数为0,它将仅显示为空白。我想知道如何添加其他语句,以便如果没有值或0值,它将显示0而不是空白

=COUNTIFS(Table22[Report Deadline],"<=" & TODAY()+7,Table22[Report Deadline],">=" & TODAY())

I have a excel formula with COUNTIFS to count the number of values with certain conditions, but if there is nothing to count or if the total number of values is 0, it just shows up as blank. I was wondering how to add an else statement so that if there are no values or 0 values it would display 0 instead of just blank

=COUNTIFS(Table22[Report Deadline],"<=" & TODAY()+7,Table22[Report Deadline],">=" & TODAY())

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

聽兲甴掵 2025-02-20 15:27:32

如果您有Excel 365,则可以使用此公式:

= count(filter(table22 [报告截止日期),(table22 [报告截止日期]&gt; = loday()()) )+ 7),“”))

首先过滤,然后计算相关日期。

If you have Excel 365 you can use this formula:

=COUNT(FILTER(Table22[Report Deadline],(Table22[Report Deadline]>=TODAY())*(Table22[Report Deadline]<=TODAY()+ 7),""))

It first filters and then counts the relevant dates.

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