列A中的Excel Countif日期大于列B

编程入门 行业动态 更新时间:2024-10-23 17:27:26
本文介绍了列A中的Excel Countif日期大于列B的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 列A和B都有日期。如果列A中的日期大于列B的同一行的日期,则应对该行进行计数。要添加上下文,我试图计算完成日期超过到期日的行数。如何实现?

谢谢。

解决方案

尝试这样:

= SUMPRODUCT( - (A:A> B:B))

它将对列 A 中的日期更大的范围内的所有实例进行求和而不是列 B 。

您也可以这样做,但需要作为数组公式输入( Ctrl + Shift + Enter ):

= SUM(IF A:A> B:B,1,0))

Columns A and B both have dates. If the date in column A is greater than the date in the same row of column B, the row should be counted. To add context, I am trying to count the number of rows where the completion date is past the due date. How can this be accomplished?

Thanks.

解决方案

You can try this:

=SUMPRODUCT(--(A:A>B:B))

It will sum all instances in the range where the date in column A is greater than that in column B.

You can also do this, however it needs to be entered as an array formula (Ctrl+Shift+Enter):

=SUM(IF(A:A>B:B,1,0))

更多推荐

列A中的Excel Countif日期大于列B

本文发布于:2023-10-30 19:13:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1543741.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日期   Excel   Countif

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!