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
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!