Counting Number of Date Instances
Hello,
I'm trying to create a formula to count the number of instances of a particular date - but I can't get a response out of the forumla - it either comes back as unparseable, or with a 0 count (even though that's the wrong count).
I've tried a few variations:
=COUNTIF(DATE:DATE,06/10/2020)
=COUNTIF(DATE:DATE,"06/10/2020")
=COUNTIF(DATE:DATE,ISDATE(@cell))
None of these seem to work... I'm hoping that someone can help me correct my formula or my formula syntax.
Thanks!
Best Answer
-
Hi @Keith Dickson!
There's a couple of ways to do it; basically the countifs is looking for the date value, so you need to format the text as a date value. Here's a couple of options:
The Cell Reference formula uses a column/target cell to set the dates, then counts all instances in the range. (You could also use a sheet summary value of you don't want to clutter your sheet)
If you want to hard code the date, then you can use the DATE() function to format your string as a date to work with the countif().
Hopefully this helps!
Answers
-
Hi @Keith Dickson!
There's a couple of ways to do it; basically the countifs is looking for the date value, so you need to format the text as a date value. Here's a couple of options:
The Cell Reference formula uses a column/target cell to set the dates, then counts all instances in the range. (You could also use a sheet summary value of you don't want to clutter your sheet)
If you want to hard code the date, then you can use the DATE() function to format your string as a date to work with the countif().
Hopefully this helps!
-
@cmondo - thanks for this the date reference worked perfectly!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.9K Get Help
- 441 Global Discussions
- 153 Industry Talk
- 501 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 79 Community Job Board
- 511 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!