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
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!