How can I count dates in the past/future?
Hi,
I'm trying to create a formula that counts certain actions in a column based on their date. Say, if there are three dates: 5/15/2020, 5/20/2020, and 5/30/2020, I want to be able to know which ones are in the future and which ones are in the past. In this case, the counter should return 2 dates in the past and 1 date in the future.
Any help is appreciated! Thanks so much in advance
Best Answer
-
Is your date column actually a date type column? If it is, how are your dates being populated? Which one is returning a zero, or is it both of them?
Answers
-
In the past would be...
=COUNTIFS([Date Column]:[Date Column], @cell < TODAY())
Today or in the future would be...
=COUNTIFS([Date Column]:[Date Column], @cell >= TODAY())
-
I tried this but the counter returns a zero value... not sure why though
-
Is your date column actually a date type column? If it is, how are your dates being populated? Which one is returning a zero, or is it both of them?
-
I just checked my formula and it returned the values I needed, not sure how though. I'm just glad it finally worked, thanks for your help!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!