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
- 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
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!