Two dates between Now and +7 Days
Hi I am trying to return a count of dates between two dates that will move based on todays date, I have tried umpteen different approaches but cannot get the sheet to return a valid answer.
=COUNTIF(MigrationDate1:MigrationDate3, >TODAY() <= TODAY(+7))
19/08/20
19/08/20
05/08/20
The answer it returns is 3. I would have expected it not to count 05/08/20.
Seems like a really simple calculation but i cannot get it to work. Any help appreciated.
Best Answer
-
You really have 2 criteria....
greater than today
and less than 7 days from today
(and did you want to include today's date and the date 7 days from now? I'm assuming yes (greater than or equal to), but you can remove the equal sign in my formula if you don't want to include one or both of those dates):
So your formula should look more like this:
=COUNTIFS(MigrationDate:MigrationDate, >=TODAY(), MigrationDate:MigrationDate, <=TODAY(7))
Answers
-
You really have 2 criteria....
greater than today
and less than 7 days from today
(and did you want to include today's date and the date 7 days from now? I'm assuming yes (greater than or equal to), but you can remove the equal sign in my formula if you don't want to include one or both of those dates):
So your formula should look more like this:
=COUNTIFS(MigrationDate:MigrationDate, >=TODAY(), MigrationDate:MigrationDate, <=TODAY(7))
-
That worked, thank you for the prompt info.
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
- 141 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!