Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

problem with date functions

User uploaded fileHi

i have a table with 2 columns. first columns is date and time. seconds is my records.

I want a auto-calculation, count out how many records i have today.

what should i do? i tried the =countif($A,today()), doesn't work.

someone help. million thanks

iMac, OS X El Capitan (10.11.3), null

Posted on Feb 6, 2016 4:56 PM

Reply
Question marked as Best reply

Posted on Feb 6, 2016 5:33 PM

You can do something like this:


User uploaded file



=COUNTIFS(Table 1::A,">="&TODAY(),Table 1::A,"<"&TODAY()+1)


TODAY() gives the date-time string of last midnight. TODAY()+1 gives midnight tonight. The COUNTIFS counts all entries on or after last midnight and before the coming midnight (which is the start of tomorrow).


SG

3 replies
Question marked as Best reply

Feb 6, 2016 5:33 PM in response to thunderstoler

You can do something like this:


User uploaded file



=COUNTIFS(Table 1::A,">="&TODAY(),Table 1::A,"<"&TODAY()+1)


TODAY() gives the date-time string of last midnight. TODAY()+1 gives midnight tonight. The COUNTIFS counts all entries on or after last midnight and before the coming midnight (which is the start of tomorrow).


SG

problem with date functions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.