CountIF Formula for Dates in the Past
I am trying to amend a current formula I am using to track enrollment. Currently, I have this formula:
=COUNTIF([Date of Injection]1:[Date of Injection]100, ISDATE(@cell)) which counts the amount of cells that have a date so my team can track how many animals we have enrolled in a certain project.
I want to change this to count the number of cells with a date but only if that date is in the past so my sheet summary data accurately reflects current enrollment.
Is this possible?
Best Answer
-
Hi @MirandaLang
I think this formula should work:
=COUNTIF([Date of Injection]1:[Date of Injection]100,<TODAY())
I would probably adjust the range so it reads like this though: =COUNTIF([Date of Injection]:[Date of Injection],<TODAY()). That way it picks up the whole column and will be maintenance free if you have over 100 animals.
I hope that helps.
Matt
Answers
-
Hi @MirandaLang
I think this formula should work:
=COUNTIF([Date of Injection]1:[Date of Injection]100,<TODAY())
I would probably adjust the range so it reads like this though: =COUNTIF([Date of Injection]:[Date of Injection],<TODAY()). That way it picks up the whole column and will be maintenance free if you have over 100 animals.
I hope that helps.
Matt
-
Thank you so much! This worked :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!