Countif does not work with hours and/ or dates

孤者浪人 提交于 2021-02-10 03:08:37

问题


Hi I have data inside 3 columns:

A. Destination (es. LosAngeles) B. Carrier (es. Ups) C. Shipment Time (es. 4:00)

The time used is the 24h time without Am/Pm

I need to do a countif to know how many shipments we have at a specific time.

Tried with: =COUNTIF(A1:A100,">="&TIME(8,30,0))-COUNTIF(A1:A100,">"&TIME(9,0,0) Result 0

Tried with: =COUNTIFS(A1:A100,">=8:30",A1:A100,"<=9:00") Result 0

Tried with: =COUNTIF('sheet1'!I:I,"<="&TIME(4, 0, 0)) Result 0

Any help? Thank you in advance.


回答1:


Try:

=COUNTIFS(A1:A100,">="&TIME(8,30,0),A1:A100,"<="&TIME(9,0,0))

The formula below was missing a closing bracket at the end

=COUNTIF(A1:A100,">="&TIME(8,30,0))-COUNTIF(A1:A100,">"&TIME(9,0,0))


来源:https://stackoverflow.com/questions/56229652/countif-does-not-work-with-hours-and-or-dates

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