本文介绍了列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
发布评论