Today Forumula Question
So I'm still learning formula's. I'm trying to create a formula in my sheet summary. I'm looking for a count of end dates thats within the next 4 days. from today. Here is my formula:
=COUNTIF([End Date]:[End Date], >TODAY(4))
Best Answer
-
I think you just have your sign flipped. What you have written is you want to return a count of all the End Dates that are greater than Today + 4. For today (October 16th), that would return a count for every cell whose date was greater than October 20th. If you want events happening in the next 4 days, you want to flip the sign like this:
=COUNTIFS([End Date]:[End Date], <=TODAY(4), [End Date]:[End Date], >TODAY(-1))
This says you want to return a count of dates within the next 4 days, inclusive of TODAY.
Answers
-
I think you just have your sign flipped. What you have written is you want to return a count of all the End Dates that are greater than Today + 4. For today (October 16th), that would return a count for every cell whose date was greater than October 20th. If you want events happening in the next 4 days, you want to flip the sign like this:
=COUNTIFS([End Date]:[End Date], <=TODAY(4), [End Date]:[End Date], >TODAY(-1))
This says you want to return a count of dates within the next 4 days, inclusive of TODAY.
-
@David Tutwiler Thanks so much, that was it.
-
No problem, glad you got it working.
Would you mind marking the reply as the "Answer"? It will help people who might be searching for this solution find it faster.
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
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!