简体   繁体   中英

COUNTIF to count =TODAY()

In Excel I am using DDE to pull intraday stock quote information. So it is continuously updating. I am trying to:

=COUNTIF(A:A,"="&TODAY())

But the column A:A which are dates some not of current date. Are being produced by functions or forumlas so they are not being read as text. I don't want to change the column into text so it can be read. because it refreshes every minute.

Is there a way to get =COUNTIF(A:A,"="&TODAY()) to read the text that is being produced by the functions within A:A instead of the functions?

Please reference the comments below the OP question.

The problem was that the dates were displayed with a number format that did not reveal there was a time component as well.

The time component was 8:00 AM.

The following formula solved the issue:

=COUNTIF(A:A,"="&TODAY()+8/24)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM