Is there any way to COUNTIF
it's the current date?
For example I have a spreadsheet with work orders, once the employee starts the work order it captures a time stamp, after the work order is completed it is moved to an archive, well I wanted to create a summary sheet that tells me how many orders we have done for that date, the format of the time stamp is:
2/19/2014 17:10:20
So basically I need a COUNTIF
to count the column for the current date.
Is this possible?
TODAY provides the current date with no time component. To create a date with the current time, use NOW . TODAY will always represent the current date the last time the spreadsheet was recalculated, rather than remaining at the date when it was first entered.
To count numbers or dates that fall within a range (such as greater than 9000 and at the same time less than 22500), you can use the COUNTIFS function. Alternately, you can use SUMPRODUCT too.
The new version of Google Sheets has COUNTIFS, which would allow =COUNTIFS(A:A,">="&TODAY(),A:A,"<"&TODAY()+1)
You need to opt in to the new version to make it work, though. ("Try the new Google Sheets")
You would need to apply a function first on the range, which then makes COUNTIF
not an appropriate function to count those dates matching 'today'. You can use SUMPRODUCT
instead:
=arrayformula(SUMPRODUCT(1*(INT(A1:A100)=TODAY())))
INT
strips out the time from the datetime.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With