是否有一种方法可以添加“ else”。 countifs函数在excel中的声明?
我有一个带有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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有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.