如何指定Excel Countifs功能的条件?

发布于 2025-02-13 17:06:27 字数 318 浏览 0 评论 0原文

我要做的是计算名为“报告截止日期”的Excel列中的值数量,但也没有值(空白)或在名为“ NOT”的值“ N/A”的另一列中名为“日期报告”发出的“

我不熟悉如何指定Countifs功能的条件,但我也不知道是否有更好的方法可以做到这一点,而不是使用Countifs

这就是我所拥有的

=COUNTIFS(Table22[Report Deadline],">=" & TODAY(),Table22[Date Report Issued],"=" "",Table22[Date Report Issued],"=" "N/A")

What I am trying to do is count the number of values in an excel column named "Report Deadline" that are after today, but also have no value(blank) or have the value "N/A" in another column named "Date Report Issued"

I am unfamiliar with how to specify conditions for the COUNTIFS function but I also don't know if there is a better way to do it rather than use COUNTIFS

This is what I have

=COUNTIFS(Table22[Report Deadline],">=" & TODAY(),Table22[Date Report Issued],"=" "",Table22[Date Report Issued],"=" "N/A")

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

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

发布评论

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

评论(1

暖风昔人 2025-02-20 17:06:27

您在Countifs中实际上无法真正具有“或”条件。
我建议做两个单独的countifs,然后将它们添加在一起。像这样:

=COUNTIFS(Table22[Report Deadline],">=" & TODAY(),Table22[Date Report Issued], "")
+
COUNTIFS(Table22[Report Deadline],">=" & TODAY(),Table22[Date Report Issued], "N/A")

如果您真的想在单个表达式中执行此操作,则可以将“ n/a”和“”放入数组中,然后将countifs包装在sum中。但这本质上是与两个单独的功能一样的事情,并且可以说并不容易阅读:

=SUM(COUNTIFS(Table22[Report Deadline],">=" & TODAY(),Table22[Date Report Issued],{"","N/A"}))

You can't really have an "OR" condition in a COUNTIFS.
I would suggest doing two separate COUNTIFS, and then adding them together. Like so:

=COUNTIFS(Table22[Report Deadline],">=" & TODAY(),Table22[Date Report Issued], "")
+
COUNTIFS(Table22[Report Deadline],">=" & TODAY(),Table22[Date Report Issued], "N/A")

If you really wanted to do it in a single expression, you could put "N/A" and "" into an array and wrap the COUNTIFS in a SUM. But it would essentially be doing the same thing as the two separate functions and arguably not be as easy to read:

=SUM(COUNTIFS(Table22[Report Deadline],">=" & TODAY(),Table22[Date Report Issued],{"","N/A"}))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文