Excel countif date in cell is greater than or equal to date in another cell

拟墨画扇 提交于 2019-12-07 06:11:12

问题


This has been killing me for a while now. I just need to count a cell if the date in that cell is greater than or equal to a date in another cell (minus x days).

For example:

A1 2/20/2014

B1 1/20/2014

=COUNTIF(B1, ">=A1-30")

-30 would be minus 30 days. This obviously does not work. Help is greatly appreciated. Thanks!


回答1:


You were almost there:

=COUNTIF(B1, ">=" & A1-30)


来源:https://stackoverflow.com/questions/21917381/excel-countif-date-in-cell-is-greater-than-or-equal-to-date-in-another-cell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!