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
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!